@@ -303,7 +303,8 @@ class Sanic:
|
|||||||
await fut
|
await fut
|
||||||
except (CancelledError, ConnectionClosed):
|
except (CancelledError, ConnectionClosed):
|
||||||
pass
|
pass
|
||||||
self.websocket_tasks.remove(fut)
|
finally:
|
||||||
|
self.websocket_tasks.remove(fut)
|
||||||
await ws.close()
|
await ws.close()
|
||||||
|
|
||||||
self.router.add(uri=uri, handler=websocket_handler,
|
self.router.add(uri=uri, handler=websocket_handler,
|
||||||
|
|||||||
Reference in New Issue
Block a user