Skip to content

Commit

Permalink
Merge pull request #46 from superfeedr/master
Browse files Browse the repository at this point in the history
C2SStream: emit 'end'
  • Loading branch information
astro committed Nov 29, 2011
2 parents 84db72a + b42f453 commit 4ecef07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/xmpp/c2s.js
Expand Up @@ -68,6 +68,10 @@ function C2SStream(socket, server) {
this.addListener('rawStanza', function(stanza) {
self.onRawStanza(stanza);
});

this.socket.addListener('end', function() {
self.emit('end');
});

return self;
};
Expand Down

0 comments on commit 4ecef07

Please sign in to comment.