]> jfr.im git - irc/freenode/jbnc.git/commitdiff
Update bouncer.js
authorMadriix <redacted>
Sun, 26 Jul 2020 19:20:45 +0000 (21:20 +0200)
committerGitHub <redacted>
Sun, 26 Jul 2020 19:20:45 +0000 (21:20 +0200)
bouncer.js

index ac63fcaa4a862c973f253be59cb9cb28d2454d8c..39d05447c9508827dc832348c8b0c0c3e36adb12 100644 (file)
@@ -555,7 +555,7 @@ server = doServer(tlsOptions,function(socket) {
           connections[this.hash].connected=false;
           connections[this.hash].write("AWAY :jbnc\n");
           if(BOUNCER_TIMEOUT!=0 && BOUNCER_TIMEOUT!=null) {
-            connections[this.hash].gone=setTimeout(function(x){connections[x].end();},BOUNCER_TIMEOUT*1000,this.hash);
+            connections[this.hash].gone=setTimeout(function(x){connections[x].end();delete connections[x];},BOUNCER_TIMEOUT*1000,this.hash);
           }
         }
       }