diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-10-31 16:22:31 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-10-31 16:22:31 -0700 |
commit | 515c047e9524fd87d66943b6b6a0d1c9778fd01a (patch) | |
tree | 48e04a1b4c1eef19f66deb0af159f65ed510db54 /tests/enet_client.c | |
parent | 4f75a99ff5d3fcc22394a5b4fbf131314e9cee53 (diff) |
improve enet test c files
Diffstat (limited to 'tests/enet_client.c')
-rw-r--r-- | tests/enet_client.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/enet_client.c b/tests/enet_client.c index 461472b8..88bb38bb 100644 --- a/tests/enet_client.c +++ b/tests/enet_client.c @@ -7,8 +7,10 @@ ENetHost * host; void main_loop() { static int counter = 0; +#if EMSCRIPTEN counter++; - if (counter == 20) { +#endif + if (counter == 10) { printf("stop!\n"); emscripten_cancel_main_loop(); return; |