git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7a73c2c
)
fix: subscriptions
author
ThomasV
<thomasv@gitorious>
Sun, 28 Oct 2012 09:22:12 +0000 (10:22 +0100)
committer
ThomasV
<thomasv@gitorious>
Sun, 28 Oct 2012 09:22:12 +0000 (10:22 +0100)
lib/interface.py
patch
|
blob
|
history
diff --git
a/lib/interface.py
b/lib/interface.py
index
4c792b5
..
354db2f
100644
(file)
--- a/
lib/interface.py
+++ b/
lib/interface.py
@@
-422,7
+422,9
@@
class Interface(threading.Thread):
with self.lock:
if self.subscriptions.get(channel) is None:
self.subscriptions[channel] = []
- self.subscriptions[channel] += sub
+ for message in sub:
+ if message not in self.subscriptions[channel]:
+ self.subscriptions[channel].append(message)
if self.protocol in 'st':
with self.lock: