Commit 89d27354 authored by liyuanhong's avatar liyuanhong

修复了linux下无法关闭连接的功能

parent 9be24297
......@@ -60,6 +60,7 @@ class ClientSocket(SocketBase):
#####################################################
def close(self):
# self.client.send("_end".encode()) //发送一个socket断开的命令
self.client.shutdown(socket.SHUT_RDWR)
self.client.close()
self.status = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment