Skip to content

Commit

Permalink
SDA-4197 - Clear existing interval if auto update is disabled (finos#…
Browse files Browse the repository at this point in the history
  • Loading branch information
KiranNiranjan authored Mar 12, 2024
1 parent 3942361 commit cbf489f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/window-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1193,6 +1193,11 @@ export const updateFeaturesForCloudConfig = async (
}
}, getRandomTime(MIN_AUTO_UPDATE_CHECK_INTERVAL, MAX_AUTO_UPDATE_CHECK_INTERVAL));
}
} else {
// Clear the interval if autoUpdate is disabled
if (autoUpdateIntervalId) {
clearInterval(autoUpdateCheckInterval);
}
}
};

Expand Down

0 comments on commit cbf489f

Please sign in to comment.