mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-25 02:10:32 -06:00
SDA-4197 - Clear existing interval if auto update is disabled (#2108)
This commit is contained in:
parent
3942361010
commit
cbf489f694
@ -1193,6 +1193,11 @@ export const updateFeaturesForCloudConfig = async (
|
|||||||
}
|
}
|
||||||
}, getRandomTime(MIN_AUTO_UPDATE_CHECK_INTERVAL, MAX_AUTO_UPDATE_CHECK_INTERVAL));
|
}, getRandomTime(MIN_AUTO_UPDATE_CHECK_INTERVAL, MAX_AUTO_UPDATE_CHECK_INTERVAL));
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// Clear the interval if autoUpdate is disabled
|
||||||
|
if (autoUpdateIntervalId) {
|
||||||
|
clearInterval(autoUpdateCheckInterval);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user