Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Remove `emscripten_cancel_main_loop` from web `exit_callback`

Mikael Hermansson043a6b60be92
diff --git a/platform/web/web_main.cpp b/platform/web/web_main.cpp
index 0ca3bc01c44..6b57b0712e2 100644
--- a/platform/web/web_main.cpp
+++ b/platform/web/web_main.cpp
@@ -70,7 +70,6 @@ void exit_callback() {
delete os; // We used a normal new, so it needs a normal delete.
os = nullptr;
godot_cleanup_profiler();
- emscripten_cancel_main_loop(); // We are exiting in this iteration.
emscripten_force_exit(exit_code); // Exit runtime.
}