mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
killDeadClients
This commit is contained in:
@@ -38,9 +38,6 @@ export class AppService implements OnModuleInit {
|
|||||||
|
|
||||||
@Cron(CronExpression.EVERY_10_MINUTES)
|
@Cron(CronExpression.EVERY_10_MINUTES)
|
||||||
private async killDeadClients() {
|
private async killDeadClients() {
|
||||||
|
|
||||||
if (process.env.NODE_APP_INSTANCE == null || process.env.NODE_APP_INSTANCE == '0') {
|
|
||||||
await this.clientService.killDeadClients();
|
await this.clientService.killDeadClients();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user