Ejemplo n.º 1
0
    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()
Ejemplo n.º 2
0
    def stop(self):
        for client in self._clients.values():
            client.stop()

        super(OVSDB, self).stop()
Ejemplo n.º 3
0
    def stop(self):
        for client in self._clients.values():
            client.stop()

        super(OVSDB, self).stop()
Ejemplo n.º 4
0
    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()
Ejemplo n.º 5
0
    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()