fix: subscriptions

This commit is contained in:
ThomasV 2012-10-28 10:22:12 +01:00
parent 7a73c2cb50
commit 5874457df2
1 changed files with 3 additions and 1 deletions

View File

@ -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: