Changed send_request in helperclient to check response on message id
This commit is contained in:
parent
697c781833
commit
4aaa785e84
1 changed files with 7 additions and 1 deletions
|
@ -234,7 +234,13 @@ class HelperClient(object):
|
|||
if no_response:
|
||||
return
|
||||
try:
|
||||
while True:
|
||||
response = self.queue.get(block=True, timeout=timeout)
|
||||
if response is not None:
|
||||
if response.mid == request.mid:
|
||||
return response
|
||||
else:
|
||||
return response
|
||||
except Empty:
|
||||
#if timeout is set
|
||||
response = None
|
||||
|
|
Loading…
Reference in a new issue