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:
Jack Robison 2020-01-15 17:59:17 -05:00 committed by GitHub
commit 974ed29c36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: