From 14ac1b82d17a5fba4e4b4e305fe857686f2b4088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Sat, 4 May 2019 22:34:28 +0200 Subject: [PATCH] Add strong close consistency guarantee to reader side --- pipe_io_server/pipe_reader_thread.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pipe_io_server/pipe_reader_thread.py b/pipe_io_server/pipe_reader_thread.py index 84d9288..28b6818 100644 --- a/pipe_io_server/pipe_reader_thread.py +++ b/pipe_io_server/pipe_reader_thread.py @@ -25,8 +25,7 @@ class PipeReaderThread(Thread): self._stop_event.set() break if message == self.eof: - pipe.close() - pipe = self._open() + self._open().close() continue self._message_handler(message[:-1])