diff --git a/pyghmi/ipmi/private/session.py b/pyghmi/ipmi/private/session.py index c2ae8723..ee1b751d 100644 --- a/pyghmi/ipmi/private/session.py +++ b/pyghmi/ipmi/private/session.py @@ -630,7 +630,7 @@ class Session(object): Session.wait_for_rsp(timeout=timeout) lastresponse = self.lastresponse self.incommand = False - if lastresponse is None: + if retry and lastresponse is None: raise exc.IpmiException('Session no longer connected') return lastresponse