clarify second server.version isn't sent

This commit is contained in:
Jack Robison 2020-01-26 12:28:44 -05:00
parent 1af58c83f8
commit 5dc2dadb03
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -94,7 +94,7 @@ class ClientSession(BaseClientSession):
await self.create_connection(self.timeout)
await self.ensure_server_version()
self._on_connect_cb()
if (perf_counter() - self.last_send) > self.max_seconds_idle or self.response_time is None:
elif (perf_counter() - self.last_send) > self.max_seconds_idle or self.response_time is None:
await self.ensure_server_version()
retry_delay = default_delay
except RPCError as e: