mirror of
https://github.com/aljazceru/python-nostr.git
synced 2025-12-19 07:14:23 +01:00
Remove relay fixes
- clear subscriptions tracked when closing relay - join and pop queue_threads when removing relay
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user