[Pkg-javascript-commits] [ltx] 108/469: connection onStanza(): stopParser() before setSecure()

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:01:10 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 92c7e94bd1d9f0789fc2fbd3e2d689d82093a270
Author: Astro <astro at spaceboyz.net>
Date:   Wed Sep 8 00:04:52 2010 +0200

    connection onStanza(): stopParser() before setSecure()
---
 lib/xmpp/connection.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/xmpp/connection.js b/lib/xmpp/connection.js
index 6aaf541..69cd73c 100644
--- a/lib/xmpp/connection.js
+++ b/lib/xmpp/connection.js
@@ -162,6 +162,7 @@ Connection.prototype.onStanza = function(stanza) {
 	this.send(new xml.Element('starttls', { xmlns: NS_XMPP_TLS }));
     } else if (this.allowTLS &&
 	       stanza.is('proceed', NS_XMPP_TLS)) {
+	this.stopParser();
 	/* Server is waiting for TLS handshake */
 	this.setSecure(this.credentials);
 	this.addListener('secure', this.startStream);

-- 
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