Handle the unsubscribe case

This commit is contained in:
NIC619
2019-07-15 16:28:29 +08:00
parent b001256f5f
commit 6d9ec7a9c5

View File

@ -107,8 +107,7 @@ class Pubsub():
# to know that it is subscribed to the topic (doesn't
# need everyone to know)
for message in rpc_incoming.subscriptions:
if message.subscribe:
self.handle_subscription(peer_id, message)
self.handle_subscription(peer_id, message)
if should_publish:
# relay message to peers with router