Skip to content

Commit

Permalink
bug fix for issue RobotWebTools#138
Browse files Browse the repository at this point in the history
  • Loading branch information
le-kang committed Jun 14, 2017
1 parent 7dc9ccd commit d27e94e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,9 @@ def unregister(self, client_id, topic):

self._publishers[topic].unregister_client(client_id)

if not self._publishers[topic].has_clients():
self._publishers[topic].unregister()
del self._publishers[topic]
# if not self._publishers[topic].has_clients():
# self._publishers[topic].unregister()
# del self._publishers[topic]

def unregister_all(self, client_id):
""" Unregisters a client from all publishers that they are registered
Expand Down

0 comments on commit d27e94e

Please sign in to comment.