aboutsummaryrefslogtreecommitdiff
path: root/src/operations/refresh.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/operations/refresh.ts')
-rw-r--r--src/operations/refresh.ts14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/operations/refresh.ts b/src/operations/refresh.ts
index f602221af..8390cac54 100644
--- a/src/operations/refresh.ts
+++ b/src/operations/refresh.ts
@@ -144,10 +144,22 @@ async function refreshCreateSession(
return;
}
rg.finishedPerCoin[coinIndex] = true;
+ rg.finishedPerCoin[coinIndex] = true;
+ let allDone = true;
+ for (const f of rg.finishedPerCoin) {
+ if (!f) {
+ allDone = false;
+ break;
+ }
+ }
+ if (allDone) {
+ rg.timestampFinished = getTimestampNow();
+ rg.retryInfo = initRetryInfo(false);
+ }
await tx.put(Stores.refreshGroups, rg);
},
);
- ws.notify({ type: NotificationType.RefreshRefused });
+ ws.notify({ type: NotificationType.RefreshUnwarranted });
return;
}