git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
48a739f
)
return message ids with send_http too
author
ThomasV
<thomasv@gitorious>
Sat, 21 Dec 2013 18:27:49 +0000 (19:27 +0100)
committer
ThomasV
<thomasv@gitorious>
Sat, 21 Dec 2013 18:27:49 +0000 (19:27 +0100)
lib/interface.py
patch
|
blob
|
history
diff --git
a/lib/interface.py
b/lib/interface.py
index
9389582
..
2eaa272
100644
(file)
--- a/
lib/interface.py
+++ b/
lib/interface.py
@@
-244,11
+244,13
@@
class Interface(threading.Thread):
t1 = time.time()
data = []
+ ids = []
for m in messages:
method, params = m
if type(params) != type([]): params = [params]
data.append( { 'method':method, 'id':self.message_id, 'params':params } )
self.unanswered_requests[self.message_id] = method, params, callback
+ ids.append(self.message_id)
self.message_id += 1
if data:
@@
-291,6
+293,7
@@
class Interface(threading.Thread):
self.rtime = time.time() - t1
self.is_connected = True
+ return ids