Skip to content

Commit

Permalink
fix compile errors under certain feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
catornot committed Aug 24, 2024
1 parent 8a40875 commit b144871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/high/squirrel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,12 +464,12 @@ impl<T: PushToSquirrelVm + SQVMName> SuspendThread<T> {
T: Send + Sync + 'static,
{
use crate::high::engine_sync::{async_execute, AsyncEngineMessage};
let thread_sqvm = unsafe { UnsafeHandle::new(thread_sqvm) };

if !Self::is_thread_and_throw_error(thread_sqvm, SQFUNCTIONS.from_sqvm(thread_sqvm)) {
return Self::new();
}

let thread_sqvm = unsafe { UnsafeHandle::new(thread_sqvm) };
std::thread::spawn(move || {
let result = thread_func();

Expand Down

0 comments on commit b144871

Please sign in to comment.