[Pkg-javascript-commits] [ltx] 112/469: router DomainContext.prototype.addInStream(): always delete stream to be replaced first

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 7ffc619b3232e8278d1e76496e838d7b9d37e531
Author: Astro <astro at spaceboyz.net>
Date:   Tue Sep 7 20:05:25 2010 +0200

    router DomainContext.prototype.addInStream(): always delete stream to be
    replaced first
    
    Not that we were afraid of exceptions, but...
---
 lib/xmpp/router.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/xmpp/router.js b/lib/xmpp/router.js
index f0dda40..442491c 100644
--- a/lib/xmpp/router.js
+++ b/lib/xmpp/router.js
@@ -213,6 +213,7 @@ DomainContext.prototype.addInStream = function(srcDomain, stream) {
 	// Replace old
 	var oldStream = this.s2sIn[srcDomain];
 	oldStream.error('conflict', 'Connection replaced');
+	delete self.s2sIn[srcDomain];
     }
 
     this.setupStream(srcDomain, stream);

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