mirror of
https://github.com/finos/SymphonyElectron.git
synced 2026-10-25 22:20:06 -05:00
SDA-4197 - Clear existing interval if auto update is disabled (#2108)
This commit is contained in:
1 parent
3942361010
commit
cbf489f694
1 file changed
+5
@@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user