From ca0ec6a92b002b7f0e43e36bc6fbb3ab38d81f35 Mon Sep 17 00:00:00 2001 From: Christian Benincasa Date: Fri, 20 Dec 2024 11:15:27 -0500 Subject: [PATCH] fix: do not count initializing sessions in stale check --- server/src/stream/Session.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/stream/Session.ts b/server/src/stream/Session.ts index 9b2e4d335..718511d60 100644 --- a/server/src/stream/Session.ts +++ b/server/src/stream/Session.ts @@ -292,6 +292,6 @@ export abstract class Session< } isStale(): boolean { - return isEmpty(this.removeStaleConnections()); + return this.state !== 'starting' && isEmpty(this.removeStaleConnections()); } }