1
0
mirror of https://github.com/moparisthebest/SickRage synced 2025-01-05 19:08:02 -05:00

Merge pull request #1238 from fernandog/patch-22

Try to fix issue #258
This commit is contained in:
echel0n 2015-01-29 14:58:08 -08:00
commit ad3dd45906

View File

@ -934,8 +934,9 @@ class IOStream(BaseIOStream):
return self.socket
def close_fd(self):
self.socket.close()
self.socket = None
if self.socket is not None:
self.socket.close()
self.socket = None
def get_fd_error(self):
errno = self.socket.getsockopt(socket.SOL_SOCKET,