fix: subscriptions
This commit is contained in:
parent
7a73c2cb50
commit
5874457df2
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue