Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
BF: Permit socket shutdown to fail silently
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Aug 4, 2016
1 parent c0c1c8c commit 242a294
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion BitTornado/Network/SocketHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ def close(self):
sock.close()

def shutdown(self, val):
self.socket.shutdown(val)
try:
self.socket.shutdown(val)
except OSError:
pass

def is_flushed(self):
return not self.buffer
Expand Down

0 comments on commit 242a294

Please sign in to comment.