MCPcopy
hub / github.com/alibaba/lightproxy / initUpdate

Function initUpdate

src/main/main.ts:197–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195}
196
197function initUpdate() {
198 if (IS_BUILD_FOR_PR) {
199 return;
200 }
201 const timer = setInterval(async () => {
202 const result = await checkUpdater();
203 if (result) {
204 clearInterval(timer);
205 }
206 }, 1000 * 60 * 60);
207
208 if (process.argv.indexOf('--update') !== -1) {
209 checkUpdater();
210 }
211}
212
213let forceQuit = false;
214

Callers 1

main.tsFile · 0.85

Calls 1

checkUpdaterFunction · 0.90

Tested by

no test coverage detected