From 4f69f667b076aa9ab19d79f8bede7f76df318269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Sun, 2 Nov 2025 21:00:12 +0100 Subject: [PATCH] Fix --- packages/effect-fc/src/Result.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/effect-fc/src/Result.ts b/packages/effect-fc/src/Result.ts index 7818d28..edb38a9 100644 --- a/packages/effect-fc/src/Result.ts +++ b/packages/effect-fc/src/Result.ts @@ -239,7 +239,10 @@ export const forkEffectDequeue = ( Effect.tap(([ref, queue]) => Effect.forkScoped(State().pipe( Effect.andThen(state => state.set(running(options?.initialProgress)).pipe( Effect.andThen(effect), - Effect.onExit(exit => Effect.andThen(state.set(fromExit(exit)), Queue.shutdown(queue))), + Effect.onExit(exit => Effect.andThen( + state.set(fromExit(exit)), + Effect.forkScoped(Queue.shutdown(queue)), + )), )), Effect.provide(Layer.empty.pipe( Layer.provideMerge(makeProgressLayer()),