2
0
mirror of https://opendev.org/x/pyghmi synced 2025-07-23 04:31:10 +00:00

Fix the mistake in last nights fix

Change-Id: I5af26ca21d6d641b665acebec12ca0552f2faa8e
This commit is contained in:
Jarrod Johnson
2018-10-12 09:29:29 -04:00
parent 4972f01246
commit c0acd75fe1

View File

@@ -540,7 +540,7 @@ class Session(object):
def _mark_broken(self, error=None):
# since our connection has failed retries
# deregister our keepalive facility
self.lastpayload = none
self.lastpayload = None
with util.protect(KEEPALIVE_SESSIONS):
Session.keepalive_sessions.pop(self, None)
with util.protect(WAITING_SESSIONS):