From 9054d7a18f371815c9d5399b0e8bed23d21e0751 Mon Sep 17 00:00:00 2001 From: Sorunome Date: Sat, 25 Apr 2020 10:00:50 +0200 Subject: [PATCH] more state invalidation --- src/skype.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/skype.ts b/src/skype.ts index b8c69cd..5e52a8b 100644 --- a/src/skype.ts +++ b/src/skype.ts @@ -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);