From 1fd99b5015a7fd61ee07cec5a648ed8650e24a5e Mon Sep 17 00:00:00 2001 From: Vanilagy <1696106+Vanilagy@users.noreply.github.com> Date: Tue, 28 Apr 2026 14:09:18 +0200 Subject: [PATCH] Fix Source assertion failure --- src/source.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/source.ts b/src/source.ts index 553c8e6..59cb8db 100644 --- a/src/source.ts +++ b/src/source.ts @@ -1927,7 +1927,10 @@ class ReadOrchestrator { } }) .finally(() => { - assert(!worker.running); + if (worker.running) { + // Rare, but can happen with multiple concurrent reads. In this case, don't do anything. + return; + } if (this.queuedReads.length > 0) { let oldestIndex = 0;