[Pkg-javascript-commits] [ltx] 154/469: client: use socket to connect when host option is passed

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:01:19 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 4996243934fe766f2d29dc5323a89f712ddc38ea
Author: Astro <astro at spaceboyz.net>
Date:   Fri Oct 15 18:20:25 2010 +0200

    client: use socket to connect when host option is passed
---
 lib/xmpp/client.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/xmpp/client.js b/lib/xmpp/client.js
index a5fb6f4..bd83735 100644
--- a/lib/xmpp/client.js
+++ b/lib/xmpp/client.js
@@ -45,7 +45,7 @@ function Client(params) {
     this.addListener('rawStanza', this.onRawStanza);
 
     if (params.host) {
-        this.connect(params.port || 5222, params.host);
+        this.socket.connect(params.port || 5222, params.host);
     } else {
         var self = this;
         var attempt = SRV.connect(this.socket,

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