test/testspriteminimal.c
changeset 9607 7746ab058d12
parent 9278 8900afb78a19
child 9619 b94b6d0bff0f
--- a/test/testspriteminimal.c	Mon May 18 21:17:13 2015 +0200
+++ b/test/testspriteminimal.c	Mon May 18 21:21:14 2015 +0200
@@ -136,6 +136,11 @@
         }
     }
     MoveSprites(renderer, sprite);
+#ifdef __EMSCRIPTEN__
+    if (done) {
+        emscripten_cancel_main_loop();
+    }
+#endif
 }
 
 int