From 5b79dbff2b89abe0f9b4646687d07de3aec616fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Thu, 9 May 2019 15:26:39 +0200 Subject: [PATCH] Fix bug where I'd accidentally override threading.Thread internals --- pipe_io_server/pipe_io_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipe_io_server/pipe_io_server.py b/pipe_io_server/pipe_io_server.py index 2c3e2f0..2715f40 100644 --- a/pipe_io_server/pipe_io_server.py +++ b/pipe_io_server/pipe_io_server.py @@ -47,14 +47,14 @@ class PipeIOServer(ABC, Thread): for thread in self._io_threads: thread.start() self._stop_event.wait() - self._stop() + self._stop_threads() def stop(self): self._stop_event.set() if self.is_alive(): self.join() - def _stop(self): + def _stop_threads(self): for thread in self._io_threads: if thread.is_alive(): thread.stop()