1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-04 07:02:26 -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 return self.socket
def close_fd(self): def close_fd(self):
self.socket.close() if self.socket is not None:
self.socket = None self.socket.close()
self.socket = None
def get_fd_error(self): def get_fd_error(self):
errno = self.socket.getsockopt(socket.SOL_SOCKET, errno = self.socket.getsockopt(socket.SOL_SOCKET,