[fix] Ws api tests (#31)
This commit is contained in:
parent
73054fd5ce
commit
3dc066fbd4
12 changed files with 108 additions and 44 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue