Skip to content

Commit

Permalink
Patch to prevent unregistration
Browse files Browse the repository at this point in the history
Workaround for RobotWebTools#138
  • Loading branch information
mvollrath committed Jun 24, 2015
1 parent 8e871cb commit 948e896
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 948e896

Please sign in to comment.