mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 02:23:38 +00: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:
parent
5bc775dfb9
commit
6957bd0656
3 changed files with 6 additions and 3 deletions
|
@ -64,7 +64,7 @@ class AniDBLink(threading.Thread):
|
||||||
self.myport = port
|
self.myport = port
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False;
|
return False
|
||||||
|
|
||||||
def disconnectSocket(self):
|
def disconnectSocket(self):
|
||||||
self.sock.close()
|
self.sock.close()
|
||||||
|
|
|
@ -1258,8 +1258,7 @@ def halt():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if ADBA_CONNECTION:
|
if ADBA_CONNECTION:
|
||||||
ADBA_CONNECTION.logout()
|
ADBA_CONNECTION.logout(True)
|
||||||
# ADBA_CONNECTION.stop()
|
|
||||||
logger.log(u"Waiting for the ANIDB CONNECTION thread to exit")
|
logger.log(u"Waiting for the ANIDB CONNECTION thread to exit")
|
||||||
try:
|
try:
|
||||||
ADBA_CONNECTION.join()
|
ADBA_CONNECTION.join()
|
||||||
|
|
|
@ -123,6 +123,7 @@ class DailySearchQueueItem(generic_queue.QueueItem):
|
||||||
generic_queue.QueueItem.finish(self)
|
generic_queue.QueueItem.finish(self)
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.log(traceback.format_exc(), logger.DEBUG)
|
logger.log(traceback.format_exc(), logger.DEBUG)
|
||||||
|
threading.currentThread().name = self.name
|
||||||
|
|
||||||
self.finish()
|
self.finish()
|
||||||
|
|
||||||
|
@ -162,6 +163,7 @@ class ManualSearchQueueItem(generic_queue.QueueItem):
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.log(traceback.format_exc(), logger.DEBUG)
|
logger.log(traceback.format_exc(), logger.DEBUG)
|
||||||
|
threading.currentThread().name = self.name
|
||||||
|
|
||||||
self.finish()
|
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 + "]")
|
logger.log(u"No needed episodes found during backlog search for [" + self.show.name + "]")
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.log(traceback.format_exc(), logger.DEBUG)
|
logger.log(traceback.format_exc(), logger.DEBUG)
|
||||||
|
threading.currentThread().name = self.name
|
||||||
|
|
||||||
self.finish()
|
self.finish()
|
||||||
|
|
||||||
|
@ -259,5 +262,6 @@ class FailedQueueItem(generic_queue.QueueItem):
|
||||||
logger.log(u"No valid episode found to retry for [" + epObj.prettyName() + "]")
|
logger.log(u"No valid episode found to retry for [" + epObj.prettyName() + "]")
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.log(traceback.format_exc(), logger.DEBUG)
|
logger.log(traceback.format_exc(), logger.DEBUG)
|
||||||
|
threading.currentThread().name = self.name
|
||||||
|
|
||||||
self.finish()
|
self.finish()
|
Loading…
Reference in a new issue