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;