Skip to content

Commit 3e24714

Browse files
authored
Merge pull request #780 from jeyum2/fix-android-panic
Disable main_thread_id assertion for Android debug build
2 parents dffe189 + 11b0ab7 commit 3e24714

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

godot-ffi/src/binding/single_threaded.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ impl BindingStorage {
149149

150150
// We only check if we are in the main thread in debug builds if we aren't building for a non-threaded Godot build,
151151
// since we could otherwise assume there won't be multi-threading.
152-
#[cfg(all(debug_assertions, not(wasm_nothreads)))]
152+
// TODO: figure out why the panic happens on Android, and how to resolve it. See https://github.com/godot-rust/gdext/pull/780.
153+
#[cfg(all(debug_assertions, not(wasm_nothreads), not(target_os = "android")))]
153154
{
154155
let main_thread_id = storage.main_thread_id.get().expect(
155156
"Godot engine not available; make sure you are not calling it from unit/doc tests",

0 commit comments

Comments
 (0)