Commit 74044c8b authored by Jim Fulton's avatar Jim Fulton

Fixed: failure of get_info() call during setup caused Clients to close themselves.

parent 6b8003ce
...@@ -489,7 +489,8 @@ class Client: ...@@ -489,7 +489,8 @@ class Client:
def register_failed(self, protocol, exc): def register_failed(self, protocol, exc):
# A protocol failed registration. That's weird. If they've all # A protocol failed registration. That's weird. If they've all
# failed, we should try again in a bit. # 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) logger.exception("Registration or cache validation failed, %s", exc)
if (self.protocol is None and not if (self.protocol is None and not
any(not p.closed for p in self.protocols) any(not p.closed for p in self.protocols)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment