Browse Source
network: also clear network.path_finder in stop_gossip
stop_gossip should undo start_gossip
related: #7242
patch-4
SomberNight
4 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
1 additions and
0 deletions
-
electrum/network.py
|
@ -382,6 +382,7 @@ class Network(Logger, NetworkRetryManager[ServerAddr]): |
|
|
if full_shutdown: |
|
|
if full_shutdown: |
|
|
await self.channel_db.stopped_event.wait() |
|
|
await self.channel_db.stopped_event.wait() |
|
|
self.channel_db = None |
|
|
self.channel_db = None |
|
|
|
|
|
self.path_finder = None |
|
|
|
|
|
|
|
|
def run_from_another_thread(self, coro, *, timeout=None): |
|
|
def run_from_another_thread(self, coro, *, timeout=None): |
|
|
assert self._loop_thread != threading.current_thread(), 'must not be called from network thread' |
|
|
assert self._loop_thread != threading.current_thread(), 'must not be called from network thread' |
|
|