Private GIT

Skip to content
Snippets Groups Projects
Commit 3353bc5d authored by Nic Wolfe's avatar Nic Wolfe
Browse files

Pause backlog when search starts to avoid both threads downloading the same episodes

parent ac21f843
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,10 @@ class CurrentSearcher():
self.amActive = True
# pause the backlog to prevent race conditions downloading 2 episodes
logger.log("Pausing backlog so it doesn't collide with episode search", logger.DEBUG)
sickbeard.backlogSearchScheduler.action.amPaused = True
self._changeMissingEpisodes()
# make sure our lists are up to date
......@@ -62,6 +66,9 @@ class CurrentSearcher():
sickbeard.updateAiringList()
sickbeard.updateComingList()
logger.log("Search is done, resuming backlog", logger.DEBUG)
sickbeard.backlogSearchScheduler.action.amPaused = False
self.amActive = False
def _changeMissingEpisodes(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment