Turn off timer after update downloads

This might do the trick, needs to be tested.
This commit is contained in:
Thomas Zarebczan 2018-08-07 09:33:06 -04:00 committed by GitHub
parent 7119a43742
commit 30c32d4c2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -140,7 +140,9 @@ export function doDownloadUpgradeRequested() {
}
export function doAutoUpdate() {
return dispatch => {
return (dispatch, getState) => {
const state = getState();
dispatch({
type: ACTIONS.AUTO_UPDATE_DOWNLOADED,
});
@ -150,6 +152,10 @@ export function doAutoUpdate() {
id: MODALS.AUTO_UPDATE_DOWNLOADED,
})
);
if (selectUpgradeTimer(state)) {
clearInterval(selectUpgradeTimer(state));
}
};
}