[Pkg-javascript-commits] [ltx] 72/469: router: cannot use incoming connections for outgoing stanzas

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:01:03 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 c577f49c86f5ddbf2b5b8718f4a90080f57b0780
Author: Astro <astro at spaceboyz.net>
Date:   Sun Sep 5 20:12:46 2010 +0200

    router: cannot use incoming connections for outgoing stanzas
---
 lib/xmpp/router.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/xmpp/router.js b/lib/xmpp/router.js
index bad9aab..d3699d1 100644
--- a/lib/xmpp/router.js
+++ b/lib/xmpp/router.js
@@ -74,13 +74,13 @@ DomainContext.prototype.sendRaw = function(stanza, destDomain) {
 DomainContext.prototype.getOutStream = function(domain) {
     var self = this;
 
+    // unfortunately we cannot use the incoming streams
+
     if (this.s2sOut.hasOwnProperty(domain)) {
 	// There's one already
 	return this.s2sOut[domain];
-    } else if (this.s2sIn.hasOwnProperty(domain)) {
-	// We can(?) also use verified incoming streams
-	return this.s2sIn[domain];
     } else {
+	console.log("OUTGOING to " + domain);
 	// Setup a new outgoing connection
 	var outStream = this.s2sOut[domain] =
 	    Server.makeOutgoingServer(domain);

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