mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-18 05:41:43 +01:00
killDeadClients
This commit is contained in:
parent
5d2fd5a97c
commit
413187f4e3
@ -38,9 +38,6 @@ export class AppService implements OnModuleInit {
|
||||
|
||||
@Cron(CronExpression.EVERY_10_MINUTES)
|
||||
private async killDeadClients() {
|
||||
|
||||
if (process.env.NODE_APP_INSTANCE == null || process.env.NODE_APP_INSTANCE == '0') {
|
||||
await this.clientService.killDeadClients();
|
||||
}
|
||||
await this.clientService.killDeadClients();
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user