Skip to content

Commit

Permalink
call async_complete in Vm::async_call
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog committed Mar 15, 2021
1 parent a6b6651 commit 0b5066d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/runestick/src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ impl Vm {
// Safety: We hold onto the guard until the vm has completed.
let guard = unsafe { args.unsafe_into_stack(&mut self.stack)? };

let value = VmExecution::new(self).complete()?;
let value = VmExecution::new(self).async_complete().await?;

// Note: this might panic if something in the vm is holding on to a
// reference of the value. We should prevent it from being possible to
Expand Down

0 comments on commit 0b5066d

Please sign in to comment.