Browse files

Emit on socket end connection.

  • Loading branch information...
1 parent 9483b7f commit b6375d195ecb04c5b9b300eb67e895d25a12daa4 Иван committed Aug 25, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/xmpp/client.js
View
1 lib/xmpp/client.js
@@ -69,6 +69,7 @@ function Client(params) {
});
this.socket.addListener('end', function() {
self.state = STATE_PREAUTH;
+ self.emit('offline');
});
}

0 comments on commit b6375d1

Please sign in to comment.