Changed send_request in helperclient to check response on message id

This commit is contained in:
Michiel De Witte 2018-12-12 12:03:44 +01:00
parent 697c781833
commit 4aaa785e84

View file

@ -234,7 +234,13 @@ class HelperClient(object):
if no_response: if no_response:
return return
try: try:
response = self.queue.get(block=True, timeout=timeout) 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: except Empty:
#if timeout is set #if timeout is set
response = None response = None