Fix drive reconnect error

pull/1/head
yflory 2021-01-12 13:09:47 +01:00
parent 2bcaf110a7
commit 98acca0c0e
1 changed files with 8 additions and 6 deletions

View File

@ -2773,12 +2773,14 @@ define([
});
}, 5000);
store.networkPromise.then(function () {
clearTimeout(to);
}, function (err) {
console.error(err);
clearTimeout(to);
});
if (store.networkPromise && store.networkPromise.then) {
store.networkPromise.then(function () {
clearTimeout(to);
}, function (err) {
console.error(err);
clearTimeout(to);
});
}
if (!data.cache) { return; }