Remove relay fixes

- clear subscriptions tracked when closing relay
- join and pop queue_threads when removing relay
This commit is contained in:
vic
2023-11-04 22:20:39 -04:00
parent cf97450201
commit 4b88a62626
2 changed files with 14 additions and 7 deletions

View File

@@ -68,8 +68,10 @@ class Relay:
)
def close(self):
self.ws.close()
self.shutdown = True
self.ws.close()
with self.lock:
self.subscriptions = {}
def check_reconnect(self):
try: