Merge fix/pd-mem-leak

This commit is contained in:
Timothy Pogue
2022-11-17 16:21:12 -07:00
22 changed files with 201 additions and 71 deletions

View File

@@ -76,13 +76,14 @@ class WebSocketChannel:
Close the WebSocketChannel
"""
self._closed.set()
self._relay_task.cancel()
try:
await self._websocket.close()
except Exception:
pass
self._closed.set()
def is_closed(self) -> bool:
"""
Closed flag