fix(core): update

This commit is contained in:
Philipp Kunz 2022-01-20 18:38:17 +01:00
parent c5e60d804a
commit 71452a293f

View File

@ -212,8 +212,10 @@ export class SmartsocketClient {
if (this.autoReconnect && useAutoReconnectSetting && this.eventStatus !== 'connecting') {
this.updateStatus('connecting');
await this.tryDebouncedReconnect();
console.log('debounced reconnect!');
await plugins.smartdelay.delayForRandom(10000, 20000);
this.disconnectRunning = false;
await this.connect();
} else {
this.disconnectRunning = false;
}
@ -227,15 +229,6 @@ export class SmartsocketClient {
await this.disconnect();
}
/**
* try a reconnection
*/
public async tryDebouncedReconnect() {
console.log('debounced reconnect!');
await plugins.smartdelay.delayForRandom(10000, 20000);
await this.connect();
}
/**
* dispatches a server call
* @param functionNameArg