mirror of
https://opendev.org/x/pyghmi
synced 2025-07-15 08:51:32 +00:00
Merge "Do not reuse a session that is not logged"
This commit is contained in:
@ -303,7 +303,8 @@ class Session(object):
|
||||
if sockaddr in cls.bmc_handlers:
|
||||
self = cls.bmc_handlers[sockaddr]
|
||||
if (self.bmc == bmc and self.userid == userid and
|
||||
self.password == password and self.kgo == kg):
|
||||
self.password == password and self.kgo == kg and
|
||||
self.logged):
|
||||
trueself = self
|
||||
else:
|
||||
del cls.bmc_handlers[sockaddr]
|
||||
|
Reference in New Issue
Block a user