From d88eecc0da2f5046ff453058f5b74a2ba4f82405 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 8 Dec 2018 13:07:51 +0000 Subject: [PATCH] Remove unnecessary shutdown function --- ipc_unix/simple.py | 5 +---- tests/test_simple.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ipc_unix/simple.py b/ipc_unix/simple.py index cec737f..5e500ef 100644 --- a/ipc_unix/simple.py +++ b/ipc_unix/simple.py @@ -38,11 +38,8 @@ class Server: thread.start() return thread - def shutdown(self): - self.server.shutdown() - def close(self): - self.shutdown() + self.server.shutdown() self.server.server_close() def handle_request(self, request: dict): diff --git a/tests/test_simple.py b/tests/test_simple.py index 5994eda..e256cae 100644 --- a/tests/test_simple.py +++ b/tests/test_simple.py @@ -14,7 +14,7 @@ class SimpleServerTestCase(TestCase): self.send_to_client = partial(send_to, self.socket_path) def tearDown(self): - self.server.shutdown() + self.server.close() def test_sending_dict(self): data = {"foo": "bar"}