Review fix.

pull/967/head
Mikunj Varsani 5 years ago committed by Mikunj
parent d31feed2c0
commit 66cec1f51e

@ -16,7 +16,7 @@ import { gt as isVersionGreaterThan, parse as parseVersion } from 'semver';
let isUpdating = false;
let downloadIgnored = false;
let interval: NodeJS.Timeout;
let interval: NodeJS.Timeout | undefined;
let stopped = false;
const SECOND = 1000;
@ -54,6 +54,7 @@ export async function start(
export function stop() {
if (interval) {
clearInterval(interval);
interval = undefined;
stopped = true;
}
}

Loading…
Cancel
Save