Skip to content

Commit

Permalink
Call shutdown on socket.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Feb 5, 2019
1 parent 07631b0 commit b5137fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kt/_binary.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ cdef class _Socket(object):
return False

self.is_closed = True
self._socket.shutdown(socket.SHUT_RDWR)
self._socket.close()

self.purge()
Expand Down

0 comments on commit b5137fe

Please sign in to comment.