From 948e89628e0527c8d237961f522d3fadf4368895 Mon Sep 17 00:00:00 2001 From: Matt Vollrath Date: Tue, 23 Jun 2015 20:20:27 -0400 Subject: [PATCH] Patch to prevent unregistration Workaround for https://github.com/RobotWebTools/rosbridge_suite/issues/138 --- .../src/rosbridge_library/internal/publishers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rosbridge_library/src/rosbridge_library/internal/publishers.py b/rosbridge_library/src/rosbridge_library/internal/publishers.py index 169e3db65..627f19a04 100644 --- a/rosbridge_library/src/rosbridge_library/internal/publishers.py +++ b/rosbridge_library/src/rosbridge_library/internal/publishers.py @@ -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