cancel emscripten main loop when shutting down
authorTaylor Richards <taylor@icculus.org>
Tue, 16 Jan 2018 11:39:32 +0000 (06:39 -0500)
committerTaylor Richards <taylor@icculus.org>
Sat, 17 Mar 2018 15:31:15 +0000 (11:31 -0400)
src/freespace2/freespace.cpp

index 18551a4..e0fafb8 100644 (file)
@@ -6749,6 +6749,7 @@ void game_loop_caller()
 {
        if ( !game_loop() ) {
                game_shutdown();
+               emscripten_cancel_main_loop();
        }
 }
 #endif