Skip to content

Commit

Permalink
fix: early exit async handler on error state
Browse files Browse the repository at this point in the history
  • Loading branch information
decahedron1 committed Jul 29, 2024
1 parent c5538f2 commit 2db63f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/session/async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ crate::extern_system_fn! {
if let Err(e) = crate::error::status_to_result(status) {
ctx.inner.emplace_value(Err(Error::SessionRun(e)));
ctx.inner.wake();
return;
}

let outputs: Vec<Value> = ctx
Expand Down

0 comments on commit 2db63f4

Please sign in to comment.