EOSE works

This commit is contained in:
callebtc 2023-03-09 14:42:31 +01:00
parent 8a6adb4768
commit cba039d041
4 changed files with 54 additions and 10 deletions

View file

@ -103,7 +103,10 @@ async def ws_relay(websocket: WebSocket):
await asyncio.sleep(10)
if not router.connected:
for s in router.subscriptions:
client.relay_manager.close_subscription(s)
try:
client.relay_manager.close_subscription(s)
except:
pass
await router.stop()
all_routers.remove(router)
break