fix cleanup

This commit is contained in:
zefie
2025-06-22 21:37:53 -04:00
parent c10bb7d6e2
commit d46de27a5e

View File

@@ -2992,10 +2992,10 @@ class WTVIRC {
} }
} }
} }
this.servers.delete(socket); this.servers.filter(s => s !== socket);
this.serverusers.delete(socket); this.serverusers.filter(s => s !== socket);
} else { } else {
this.clients.delete(socket); this.clients.filter(c => c !== socket);
} }
if (socket._idleInterval) { if (socket._idleInterval) {
clearInterval(socket._idleInterval); clearInterval(socket._idleInterval);