mirror of
https://github.com/plantroon/mx-puppet-xmpp.git
synced 2024-12-22 14:41:51 +00:00
hopefully better error/disconnect detection
This commit is contained in:
parent
2863938e68
commit
8436451c1d
@ -335,6 +335,7 @@ export class Client extends EventEmitter {
|
||||
}
|
||||
} catch (err) {
|
||||
log.error("Failed to get contacts diff", err);
|
||||
this.emit("error", err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user