@torrent-tv/proxy 2.97.2 → 2.97.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@torrent-tv/proxy",
3
- "version": "2.97.2",
3
+ "version": "2.97.3",
4
4
  "description": "Torrent proxy client that exposes webseed-like HTTP stream endpoint.",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "repository": {
@@ -721,10 +721,14 @@ export class EncodeRun {
721
721
  this.#stopping = true;
722
722
  this.#stopReason = because;
723
723
  this.#stopOrderedAt = this.now();
724
- this.#transition(ENCODE_RUN_EVENT.STOP_ORDERED);
725
724
  // A suspended process does not act on SIGTERM until it is continued, so the
726
- // wait for its exit would never end. Let it run before asking it to stop.
725
+ // wait for its exit would never end. Let it run before asking it to stop —
726
+ // and before the state leaves SUSPENDED, because the state is what
727
+ // `#continue` reads. Field 2026-10-11: the order was the other way round,
728
+ // no SIGCONT was sent, and a stopped soundtrack encoder stayed in state `T`
729
+ // with its 75 MB input admitted for as long as the process lived.
727
730
  this.#continue();
731
+ this.#transition(ENCODE_RUN_EVENT.STOP_ORDERED);
728
732
  this.#signal("SIGTERM");
729
733
  }
730
734