Skip to content

Commit

Permalink
chore: shutdown runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Dec 13, 2023
1 parent e383f39 commit 09ee51d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,8 @@ pub unsafe extern "C" fn account_execute_raw(
pub unsafe extern "C" fn client_free(t: *mut ToriiClient) {
if !t.is_null() {
unsafe {
let _ = Box::from_raw(t);
let client = Box::from_raw(t);
client.runtime.shutdown_background();
}
}
}
Expand Down

0 comments on commit 09ee51d

Please sign in to comment.