@threadbase-sh/streamer 1.28.2 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +30 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5881,7 +5881,7 @@ var StreamerServer = class {
|
|
|
5881
5881
|
}
|
|
5882
5882
|
for (const [sessionId, subscribers] of this.sessionSubscribers) {
|
|
5883
5883
|
subscribers.delete(ws);
|
|
5884
|
-
if (subscribers.size === 0) {
|
|
5884
|
+
if (subscribers.size === 0 && this.ptyGracePeriodMs > 0) {
|
|
5885
5885
|
this.startGraceTimer(sessionId, this.ptyGracePeriodMs);
|
|
5886
5886
|
}
|
|
5887
5887
|
}
|