[fix] Ws api tests (#31)

This commit is contained in:
Vlad Stan 2024-11-11 15:25:25 +02:00 committed by GitHub
parent 73054fd5ce
commit 3dc066fbd4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 108 additions and 44 deletions

View file

@ -32,14 +32,14 @@ nostrrelay_redirect_paths = [
scheduled_tasks: list[asyncio.Task] = []
def nostrrelay_stop():
async def nostrrelay_stop():
for task in scheduled_tasks:
try:
task.cancel()
except Exception as ex:
logger.warning(ex)
try:
asyncio.run(client_manager.stop())
await client_manager.stop()
except Exception as ex:
logger.warning(ex)