fix(core): update
This commit is contained in:
11
ts/index.ts
11
ts/index.ts
@@ -53,10 +53,17 @@ export class WebDetector {
|
||||
return reachesInternet;
|
||||
}
|
||||
|
||||
async startPeriodicChecks() {
|
||||
while (true) {
|
||||
private periodicChecksRunning = false;
|
||||
|
||||
public async startPeriodicChecks() {
|
||||
this.periodicChecksRunning = true;
|
||||
while (this.periodicChecksRunning) {
|
||||
await this.isOnline();
|
||||
await plugins.smartdelay.delayFor(3000);
|
||||
}
|
||||
}
|
||||
|
||||
public async stopPeriodicChecks() {
|
||||
this.periodicChecksRunning = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user