1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-03 22:52:24 -05:00

Try to fix issue #258

SiCKRAGETV/sickrage-issues#258

related to: SiCKRAGETV/sickrage-issues#471
This commit is contained in:
Fernando 2015-01-25 01:17:17 -02:00
parent 91cb8d885c
commit b9cbc661d4

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,