diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index f11c55280..1745d0dd7 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -2765,15 +2765,15 @@ define([ store.networkPromise = info.networkPromise; store.cacheReturned = returned; - // Check if we can connect - var to = setTimeout(function () { - store.networkTimeout = true; - broadcast([], "LOADING_DRIVE", { - type: "offline" - }); - }, 5000); - if (store.networkPromise && store.networkPromise.then) { + // Check if we can connect + var to = setTimeout(function () { + store.networkTimeout = true; + broadcast([], "LOADING_DRIVE", { + type: "offline" + }); + }, 5000); + store.networkPromise.then(function () { clearTimeout(to); }, function (err) {