1
0

compatibility with 0.6 protocol

This commit is contained in:
ThomasV
2012-11-14 15:33:44 +01:00
parent 259c5c1b06
commit 8ec6a60daf
5 changed files with 63 additions and 39 deletions

View File

@@ -84,6 +84,12 @@ class Interface(threading.Thread):
if error:
print_error("received error:", c)
if msg_id is not None:
with self.lock:
method, params, channel = self.unanswered_requests.pop(msg_id)
response_queue = self.responses[channel]
response_queue.put({'method':method, 'params':params, 'error':error, 'id':msg_id})
return
if msg_id is not None: