diff --git a/src/client.ts b/src/client.ts index 9c47fdd..f880bad 100644 --- a/src/client.ts +++ b/src/client.ts @@ -335,6 +335,7 @@ export class Client extends EventEmitter { } } catch (err) { log.error("Failed to get contacts diff", err); + this.emit("error", err); } } } diff --git a/src/skype.ts b/src/skype.ts index ebcb585..4daab90 100644 --- a/src/skype.ts +++ b/src/skype.ts @@ -188,6 +188,7 @@ export class Skype { const MINUTE = 60000; client.on("error", async (err: Error) => { if (p.restarting) { + await this.puppet.sendStatusMessage(puppetId, "Got an error, but am already restrting, ignoring...."); return; } p.restarting = true;