From b1448710e199f87881870d955165d67e44ffd32a Mon Sep 17 00:00:00 2001 From: cat_or_not <41955154+catornot@users.noreply.github.com> Date: Sat, 24 Aug 2024 11:05:30 -0400 Subject: [PATCH] fix compile errors under certain feature flags --- src/high/squirrel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/high/squirrel.rs b/src/high/squirrel.rs index 58f4ed4..f47ce95 100644 --- a/src/high/squirrel.rs +++ b/src/high/squirrel.rs @@ -464,12 +464,12 @@ impl SuspendThread { 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();