2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-27 19:37:44 +00:00

Attempt to logout on the way out when broken

Do a no-retry logout attempt, in hopes of mitigating leaving
stray sessions open in various situations.

Change-Id: I750249a69cac2695d8da45780c3b908943148565
This commit is contained in:
Jarrod Johnson 2018-06-26 08:52:59 -04:00
parent 8bd1aeeada
commit 399618df92

View File

@ -537,6 +537,7 @@ class Session(object):
Session.keepalive_sessions.pop(self, None)
with util.protect(WAITING_SESSIONS):
Session.waiting_sessions.pop(self, None)
self.logout()
self.logging = False
self.errormsg = error
if self.logged: