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:
|
if no_response:
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
|
while True:
|
||||||
response = self.queue.get(block=True, timeout=timeout)
|
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:
|
except Empty:
|
||||||
#if timeout is set
|
#if timeout is set
|
||||||
response = None
|
response = None
|
||||||
|
|
Loading…
Reference in a new issue