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:
parent
8bd1aeeada
commit
399618df92
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user