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
1 changed files with 3 additions and 2 deletions

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,