mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
xmpp disconnect more cleanly/correctly
This commit is contained in:
parent
9db89f3ea1
commit
a9d1ca0491
@ -211,7 +211,7 @@ module.exports = function(RED) {
|
|||||||
for (const room of rooms) {
|
for (const room of rooms) {
|
||||||
await that.client.send(xml('presence', {to:room, type:'unavailable'}));
|
await that.client.send(xml('presence', {to:room, type:'unavailable'}));
|
||||||
}
|
}
|
||||||
// if (that.client.connected) {
|
if (that.connected) {
|
||||||
await that.client.send(xml('presence', {type:'unavailable'}));
|
await that.client.send(xml('presence', {type:'unavailable'}));
|
||||||
try{
|
try{
|
||||||
if (RED.settings.verbose || LOGITALL) {
|
if (RED.settings.verbose || LOGITALL) {
|
||||||
@ -222,7 +222,7 @@ module.exports = function(RED) {
|
|||||||
catch(e) {
|
catch(e) {
|
||||||
that.warn(e);
|
that.warn(e);
|
||||||
}
|
}
|
||||||
// }
|
}
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "node-red-node-xmpp",
|
"name": "node-red-node-xmpp",
|
||||||
"version": "0.4.1",
|
"version": "0.4.2",
|
||||||
"description": "A Node-RED node to talk to an XMPP server",
|
"description": "A Node-RED node to talk to an XMPP server",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@xmpp/client": "^0.12.0"
|
"@xmpp/client": "^0.12.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user