diff --git a/src/common/k8s-api/kube-api.ts b/src/common/k8s-api/kube-api.ts index 44c50864bd..d06fa13b7b 100644 --- a/src/common/k8s-api/kube-api.ts +++ b/src/common/k8s-api/kube-api.ts @@ -594,12 +594,14 @@ export class KubeApi { } electron.powerMonitor.once("resume", () => { clearTimeout(timedRetry); - logger.info(`[KUBE-API] system resumed, resume watching of ${watchUrl}...`); timedRetry = setTimeout(() => { if (this.networkOnline) { + logger.info(`[KUBE-API] system resumed, resume watching of ${watchUrl}...`); this.watch({ ...opts, namespace, callback, watchId, retry: true }); } else { + logger.info(`[KUBE-API] system resumed but network appears to be offline, resume watching when online.`); electron.ipcMain.once("network:online", () => { + logger.info(`[KUBE-API] network on line, resume watching of ${watchUrl}...`); this.watch({ ...opts, namespace, callback, watchId, retry: true }); }); }