more state invalidation

This commit is contained in:
Sorunome 2020-04-25 10:00:50 +02:00
parent d2019b0ccd
commit 9054d7a18f
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 2 additions and 0 deletions

View File

@ -208,6 +208,7 @@ export class Skype {
await this.puppet.sendStatusMessage(puppetId, "Error: " + err);
await this.puppet.sendStatusMessage(puppetId, "Reconnecting in a minute... ");
await this.stopClient(puppetId);
p.data.state = undefined; // delete the sate so that we re-login for sure
setTimeout(async () => {
await this.startClient(puppetId);
}, MINUTE);
@ -215,6 +216,7 @@ export class Skype {
log.error("baaaad error");
await this.puppet.sendStatusMessage(puppetId, "Super bad error, restarting in a minute. This is stupid. And will hopefully be fixed in the future.");
await this.stopClient(puppetId);
p.data.state = undefined; // delete the sate so that we re-login for sure
setTimeout(async () => {
await this.startClient(puppetId);
}, MINUTE);