2
0
mirror of https://opendev.org/x/pyghmi synced 2026-03-29 06:13:30 +00:00

Deregister timeout on broken

When broken for whatever reason, we do not want timeout handling
to continue trying to heal the session.  Notably bad when login fails
and a _relog is triggered continually.

Change-Id: Id342a7fc1274fe95483f2e5392b04f86d23c2b1a
This commit is contained in:
Jarrod Johnson
2014-05-20 16:05:26 -04:00
parent ff05c2dd57
commit d64b19a292

View File

@@ -388,6 +388,7 @@ class Session(object):
# since our connection has failed retries
# deregister our keepalive facility
Session.keepalive_sessions.pop(self, None)
Session.waiting_sessions.pop(self, None)
if self.logged:
self.logged = 0 # mark session as busted
self._customkeepalives = None