Server disconnection works properly
This commit is contained in:
parent
dcce36eb7c
commit
038590c659
4 changed files with 5 additions and 5 deletions
|
|
@ -57,8 +57,9 @@ class SocketServer(AbstractServer):
|
|||
return True
|
||||
|
||||
def _close(self):
|
||||
self._sending_queue.join()
|
||||
if self.socket is not None:
|
||||
self.socket.shutdown(SHUT_RDWR)
|
||||
self.socket.shutdown(socket.SHUT_RDWR)
|
||||
self.socket.close()
|
||||
self.socket = None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue