batch kill dead clients

This commit is contained in:
Ben
2025-11-21 18:42:00 -05:00
parent ff84d8284f
commit 6f6abe5e2d
2 changed files with 31 additions and 11 deletions
+3 -1
View File
@@ -30,7 +30,9 @@ export class AppService implements OnModuleInit {
setInterval(async () => {
console.log('Killing dead clients');
await this.clientService.killDeadClients();
while (await this.clientService.killDeadClients()) {
console.log('Finished killing clients');
}
}, 1000 * 60 * 5);
setInterval(async () => {