forked from LBRYCommunity/lbry-sdk
Merge pull request #2729 from lbryio/fix-headers-subscription-to-old
disconnect from server that returns rpc error for server.version
This commit is contained in:
commit
974ed29c36
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