forked from LBRYCommunity/lbry-sdk
disconnect from server that returns rpc error for server.version
-the server returns this error if it thinks we are incompatible with it
This commit is contained in:
parent
f2545b98ab
commit
53eb033034
1 changed files with 1 additions and 0 deletions
|
@ -98,6 +98,7 @@ class ClientSession(BaseClientSession):
|
||||||
await self.ensure_server_version()
|
await self.ensure_server_version()
|
||||||
retry_delay = default_delay
|
retry_delay = default_delay
|
||||||
except RPCError as e:
|
except RPCError as e:
|
||||||
|
await self.close()
|
||||||
log.debug("Server error, ignoring for 1h: %s:%d -- %s", *self.server, e.message)
|
log.debug("Server error, ignoring for 1h: %s:%d -- %s", *self.server, e.message)
|
||||||
retry_delay = 60 * 60
|
retry_delay = 60 * 60
|
||||||
except IncompatibleWalletServerError:
|
except IncompatibleWalletServerError:
|
||||||
|
|
Loading…
Reference in a new issue