2
0
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:
Jenkins
2014-05-03 15:55:52 +00:00
committed by Gerrit Code Review

View File

@ -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]