From: Youness Alaoui Date: Thu, 8 Jan 2015 18:39:17 +0000 (-0500) Subject: Return the correct result for the first call to getPossibleSDcardDrives X-Git-Tag: lulzbot-15.02.1-1.01~75^2~4^2~9 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d2b7e1909637f4a8c8c42ece07900c389149c7fd;p=cura.git Return the correct result for the first call to getPossibleSDcardDrives --- diff --git a/Cura/util/removableStorage.py b/Cura/util/removableStorage.py index 812e9e98..b4c16eab 100644 --- a/Cura/util/removableStorage.py +++ b/Cura/util/removableStorage.py @@ -69,7 +69,10 @@ def getPossibleSDcardDrives(): if _removableCacheUpdateThread is None: _removableCacheUpdateThread = threading.Thread(target=_updateCache) _removableCacheUpdateThread.daemon = True + _removableCache = None _removableCacheUpdateThread.start() + while _removableCache is None: + time.sleep(0.01) return _removableCache def _updateCache():