mirror of
https://github.com/plantroon/mx-puppet-xmpp.git
synced 2024-12-22 22:51:42 +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) {
|
} catch (err) {
|
||||||
log.error("Failed to get contacts diff", err);
|
log.error("Failed to get contacts diff", err);
|
||||||
|
this.emit("error", err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -188,6 +188,7 @@ export class Skype {
|
|||||||
const MINUTE = 60000;
|
const MINUTE = 60000;
|
||||||
client.on("error", async (err: Error) => {
|
client.on("error", async (err: Error) => {
|
||||||
if (p.restarting) {
|
if (p.restarting) {
|
||||||
|
await this.puppet.sendStatusMessage(puppetId, "Got an error, but am already restrting, ignoring....");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
p.restarting = true;
|
p.restarting = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user