Skip to content

Commit

Permalink
fix: do not count initializing sessions in stale check
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbenincasa committed Dec 20, 2024
1 parent 893e31d commit ca0ec6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/stream/Session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,6 @@ export abstract class Session<
}

isStale(): boolean {
return isEmpty(this.removeStaleConnections());
return this.state !== 'starting' && isEmpty(this.removeStaleConnections());
}
}

0 comments on commit ca0ec6a

Please sign in to comment.