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"}