Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
connection.py del socket
  • Loading branch information
mknx committed Oct 6, 2013
1 parent 3562d25 commit 55efdfd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/connection.py
Expand Up @@ -155,6 +155,7 @@ def close(self):
self._poller.unregister_connection(self._socket.fileno())
self._socket.shutdown(socket.SHUT_RDWR)
self._socket.close()
del(self._socket)

def accept(self):
try:
Expand Down Expand Up @@ -253,6 +254,7 @@ def close(self):
self.handle_close()
self._socket.shutdown(socket.SHUT_RDWR)
self._socket.close()
del(self._socket)

def discard_buffers(self):
self.inbuffer = bytearray()
Expand Down

0 comments on commit 55efdfd

Please sign in to comment.