lnworker: clear peer retry times if proxy settings change

maybe there were failures due to the previous proxy details being incorrect
This commit is contained in:
SomberNight 2020-04-15 22:47:14 +02:00
parent 95fa5d37c3
commit 82da581d45
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -390,6 +390,7 @@ class LNWorker(Logger, NetworkRetryManager[LNPeerAddr]):
def on_proxy_changed(self, event, *args):
for peer in self.peers.values():
peer.close_and_cleanup()
self._clear_addr_retry_times()
class LNGossip(LNWorker):