1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

fallback retry only on error

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-02-11 14:29:26 +02:00
parent 4290fc5132
commit 650224fdb1

View File

@ -321,7 +321,7 @@ export abstract class KubeObjectStore<T extends KubeObject = any> extends ItemSt
});
});
}, 1000);
} else { // not sure what to do, best to retry
} else if(error) { // not sure what to do, best to retry
if (timedRetry) clearTimeout(timedRetry);
timedRetry = setTimeout(() => {