From 36e1bbddd93891222168c57e49150058d0cec498 Mon Sep 17 00:00:00 2001 From: Changhua Date: Mon, 28 Apr 2025 00:39:31 +0800 Subject: [PATCH] feat(python): shutdown rpc on cleanup --- clients/python/wcferry/client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clients/python/wcferry/client.py b/clients/python/wcferry/client.py index 33ed0ac..01e2ebc 100644 --- a/clients/python/wcferry/client.py +++ b/clients/python/wcferry/client.py @@ -131,6 +131,11 @@ class Wcf(): return self.disable_recv_msg() + + req = wcf_pb2.Request() + req.func = wcf_pb2.FUNC_SHUTDOWN + _ = self._send_request(req) + self.cmd_socket.close() self.msg_socket.close()