Skip to content

Commit

Permalink
Fixed: failure of get_info() call during setup caused Clients to clos…
Browse files Browse the repository at this point in the history
…e themselves.
  • Loading branch information
Jim Fulton committed Jun 1, 2016
1 parent 6b8003c commit 74044c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ZEO/asyncio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,8 @@ def registered(self, protocol, last_transaction_promise):
def register_failed(self, protocol, exc):
# A protocol failed registration. That's weird. If they've all
# failed, we should try again in a bit.
protocol.close()
if protocol is not self:
protocol.close()
logger.exception("Registration or cache validation failed, %s", exc)
if (self.protocol is None and not
any(not p.closed for p in self.protocols)
Expand Down

0 comments on commit 74044c8

Please sign in to comment.