set xmpp presence offline on close

This commit is contained in:
Dave Conway-Jones 2016-01-31 23:28:05 +00:00
parent f3b315ea7c
commit 32706ff92c
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ module.exports = function(RED) {
}
node.on("close", function(done) {
//xmpp.setPresence('offline');
xmpp.setPresence('offline');
xmpp.disconnect();
if (xmpp.conn) { xmpp.conn.end(); }
xmpp = null;

View File

@ -1,6 +1,6 @@
{
"name" : "node-red-node-xmpp",
"version" : "0.1.2",
"version" : "0.1.3",
"description" : "A Node-RED node to talk to an XMPP server",
"dependencies" : {
"simple-xmpp" : "1.3.*"