[Pkg-javascript-commits] [ltx] 32/469: client: oops, should emit 'stanza'

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:00:55 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository ltx.

commit 7771fb35f27b873b4d9a2a3225b6b4adc7fae712
Author: Astro <astro at spaceboyz.net>
Date:   Mon May 31 16:03:26 2010 +0200

    client: oops, should emit 'stanza'
---
 lib/xmpp/client.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/xmpp/client.js b/lib/xmpp/client.js
index a686b74..782fb54 100644
--- a/lib/xmpp/client.js
+++ b/lib/xmpp/client.js
@@ -134,6 +134,8 @@ Client.prototype.onRawStanza = function(stanza) {
     } else if (stanza.name == 'stream:error') {
 	this.emit('error', stanza);
 	this.end();
+    } else if (this.state == STATE_ONLINE) {
+	this.emit('stanza', stanza);
     }
 };
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git



More information about the Pkg-javascript-commits mailing list