1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-04 15:12:23 -05:00

Possible fix for stacked provider names during backlog search.

Possible fix for anidb connection stop issues during restart/shutdown.
This commit is contained in:
echel0n 2014-07-17 23:16:18 -07:00
parent 5bc775dfb9
commit 6957bd0656
3 changed files with 6 additions and 3 deletions

View File

@ -64,7 +64,7 @@ class AniDBLink(threading.Thread):
self.myport = port
return True
else:
return False;
return False
def disconnectSocket(self):
self.sock.close()

View File

@ -1258,8 +1258,7 @@ def halt():
pass
if ADBA_CONNECTION:
ADBA_CONNECTION.logout()
# ADBA_CONNECTION.stop()
ADBA_CONNECTION.logout(True)
logger.log(u"Waiting for the ANIDB CONNECTION thread to exit")
try:
ADBA_CONNECTION.join()

View File

@ -123,6 +123,7 @@ class DailySearchQueueItem(generic_queue.QueueItem):
generic_queue.QueueItem.finish(self)
except Exception:
logger.log(traceback.format_exc(), logger.DEBUG)
threading.currentThread().name = self.name
self.finish()
@ -162,6 +163,7 @@ class ManualSearchQueueItem(generic_queue.QueueItem):
except Exception:
logger.log(traceback.format_exc(), logger.DEBUG)
threading.currentThread().name = self.name
self.finish()
@ -211,6 +213,7 @@ class BacklogQueueItem(generic_queue.QueueItem):
logger.log(u"No needed episodes found during backlog search for [" + self.show.name + "]")
except Exception:
logger.log(traceback.format_exc(), logger.DEBUG)
threading.currentThread().name = self.name
self.finish()
@ -259,5 +262,6 @@ class FailedQueueItem(generic_queue.QueueItem):
logger.log(u"No valid episode found to retry for [" + epObj.prettyName() + "]")
except Exception:
logger.log(traceback.format_exc(), logger.DEBUG)
threading.currentThread().name = self.name
self.finish()