Exemplo n.º 1
0
 def unregister(self):
     """ Unsubscribes this subscription and cleans up resources """
     manager.unsubscribe(self.client_id, self.topic)
     with self.handler_lock:
         self.handler.finish()
     self.clients.clear()
Exemplo n.º 2
0
 def unregister(self):
     """ Unsubscribes this subscription and cleans up resources """
     manager.unsubscribe(self.client_id, self.topic)
     with self.handler_lock:
         self.handler.finish()
     self.clients.clear()