From a8d3c3ccc88f9f7462fdd0c0d1a8a1f659c95226 Mon Sep 17 00:00:00 2001 From: Et0h Date: Thu, 2 Jun 2016 14:37:59 +0100 Subject: [PATCH] Only update cache if media directories are specified --- syncplay/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/client.py b/syncplay/client.py index 02a84b0..48eaf7a 100644 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -1601,7 +1601,7 @@ class FileSwitchManager(object): self.infoUpdated() def updateInfo(self): - if not self.currentlyUpdating: + if not self.currentlyUpdating and self.mediaDirectories: threads.deferToThread(self._updateInfoThread).addCallback(lambda x: self.checkForFileSwitchUpdate()) def setFilenameWatchlist(self, unfoundFilenames):