mirror of
https://opendev.org/x/pyghmi
synced 2025-02-04 21:12:47 +00:00
Restore sane timeout behavior to pyghmi
The change to make sure resources are freed replaced straightforward message with a weird one. In the well known context, put the well known message back in the reasonable path. Change-Id: Iea17b8bbb7b14255debb05a90d5701f320b5d705
This commit is contained in:
parent
b2f46dfdae
commit
8ac115a8a7
@ -592,6 +592,9 @@ class Session(object):
|
||||
|
||||
def onlogon(self, parameter):
|
||||
if 'error' in parameter:
|
||||
while self.logonwaiters:
|
||||
waiter = self.logonwaiters.pop()
|
||||
waiter(parameter)
|
||||
self._mark_broken(parameter['error'])
|
||||
elif self.onlogpayload:
|
||||
self._cmdwait()
|
||||
|
Loading…
x
Reference in New Issue
Block a user