diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-10-02 18:41:28 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-10-02 18:41:28 -0700 |
commit | cc14e2ad3a8764b3ee56fee0a7a71dc5be3de5ec (patch) | |
tree | e22b5482986e0dcf6d88bf4b30bb6a05f91dfaf5 /tests/enet_client.c | |
parent | a607486fb03f328927230958d850d4832c15a77e (diff) |
enet and socket improvements
Diffstat (limited to 'tests/enet_client.c')
-rw-r--r-- | tests/enet_client.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/enet_client.c b/tests/enet_client.c index b22e7bc4..bc4d8ba7 100644 --- a/tests/enet_client.c +++ b/tests/enet_client.c @@ -6,9 +6,8 @@ ENetHost * host; void main_loop() { - printf("loop!\n"); ENetEvent event; - if (enet_host_service (host, & event, 1000) == 0) return; + if (enet_host_service (host, & event, 0) == 0) return; switch (event.type) { case ENET_EVENT_TYPE_CONNECT: @@ -84,7 +83,7 @@ int main (int argc, char ** argv) "console.log('added.');"); #endif - emscripten_set_main_loop(main_loop, 0); + emscripten_set_main_loop(main_loop, 500); return 1; } |