2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-14 11:48:33 +00:00

Abandon a broken session

init can wait forever if a session is going to be broken.

Change-Id: I233e0bffdac58eed7644db0cd17477d45f8ace15
This commit is contained in:
Jarrod Johnson 2018-07-24 14:22:44 -04:00
parent c7da450214
commit 779b9be2e2

View File

@ -468,7 +468,7 @@ class Session(object):
if hasattr(self, 'initialized'):
# new found an existing session, do not corrupt it
if onlogon is None:
while self.logging:
while self.logging and not self.broken:
Session.wait_for_rsp()
else:
if self.logging: