From 779b9be2e2db11f05fae3ce2185eed132900b215 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 24 Jul 2018 14:22:44 -0400 Subject: [PATCH] Abandon a broken session init can wait forever if a session is going to be broken. Change-Id: I233e0bffdac58eed7644db0cd17477d45f8ace15 --- pyghmi/ipmi/private/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/ipmi/private/session.py b/pyghmi/ipmi/private/session.py index 366e9627..9675c195 100644 --- a/pyghmi/ipmi/private/session.py +++ b/pyghmi/ipmi/private/session.py @@ -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: