From d2b7e1909637f4a8c8c42ece07900c389149c7fd Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Thu, 8 Jan 2015 13:39:17 -0500 Subject: [PATCH] Return the correct result for the first call to getPossibleSDcardDrives --- Cura/util/removableStorage.py | 3 +++ 1 file changed, 3 insertions(+) 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(): -- 2.30.2