Skip to content

Commit de0f6c0

Browse files
committed
Disable main_thread_id assertion for Android debug build
This code block causes a runtime panic during initializing in Android debug builds
1 parent c6d68f4 commit de0f6c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

godot-ffi/src/binding/single_threaded.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl BindingStorage {
147147

148148
// We only check if we are in the main thread in debug builds if we aren't building for a non-threaded Godot build,
149149
// since we could otherwise assume there won't be multi-threading.
150-
#[cfg(all(debug_assertions, not(wasm_nothreads)))]
150+
#[cfg(all(debug_assertions, not(wasm_nothreads), not(target_os = "android")))]
151151
{
152152
let main_thread_id = storage.main_thread_id.get().expect(
153153
"Godot engine not available; make sure you are not calling it from unit/doc tests",

0 commit comments

Comments
 (0)