def stop(self): # NOTE(jkoelker) Attempt to gracefully stop the accept loop self.is_active = False # NOTE(jkoelker) Forceably kill the loop and clear the main_thread if self.main_thread: hub.kill(self.main_thread) self.main_thread = None # NOTE(jkoelker) Stop all the clients for client in self._clients.values(): client.stop() # NOTE(jkoelker) super will only take care of the event and joining now super(OVSDB, self).stop()
def stop(self): for client in self._clients.values(): client.stop() super(OVSDB, self).stop()
def stop(self): # TODO main_thread should be stopped first, not from super().stop for client in self._clients.values(): client.stop() super(OVSDB, self).stop()