Skip to content

Commit 0a13ae5

Browse files
authored
Merge pull request #71 from Madriix/master
Update bouncer.js
2 parents bbd2dcd + efd7e59 commit 0a13ae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bouncer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ server = doServer(tlsOptions,function(socket) {
626626
connections[this.hash].connected=false;
627627
connections[this.hash].write("AWAY :away\n");
628628
if(BOUNCER_TIMEOUT!=0 && BOUNCER_TIMEOUT!=null) {
629-
connections[this.hash].gone=setTimeout(()=>{connections[this.hash].end();delete connections[this.hash];},BOUNCER_TIMEOUT*1000,this.hash);
629+
connections[this.hash].gone=setTimeout(()=>{try{connections[this.hash].end();}catch(e){} delete connections[this.hash];},BOUNCER_TIMEOUT*1000,this.hash);
630630
}
631631
}
632632
}

0 commit comments

Comments
 (0)