From 53eb033034f02abe68054893798d7573f5557bbd Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Wed, 15 Jan 2020 17:06:13 -0500 Subject: [PATCH] disconnect from server that returns rpc error for server.version -the server returns this error if it thinks we are incompatible with it --- lbry/wallet/network.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lbry/wallet/network.py b/lbry/wallet/network.py index 1b08c5a2a..1448f1db0 100644 --- a/lbry/wallet/network.py +++ b/lbry/wallet/network.py @@ -98,6 +98,7 @@ class ClientSession(BaseClientSession): await self.ensure_server_version() retry_delay = default_delay except RPCError as e: + await self.close() log.debug("Server error, ignoring for 1h: %s:%d -- %s", *self.server, e.message) retry_delay = 60 * 60 except IncompatibleWalletServerError: