From 5874457df2f4dda2ac460323397c3397dc9a923a Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 28 Oct 2012 10:22:12 +0100 Subject: [PATCH] fix: subscriptions --- lib/interface.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/interface.py b/lib/interface.py index 4c792b5c..354db2f9 100644 --- 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: