Skip to content

Commit

Permalink
WebSocket poll timeout (prevents hogging CPU)
Browse files Browse the repository at this point in the history
  • Loading branch information
CasEbb committed Nov 20, 2017
1 parent 6e09c48 commit 44d0f58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/Websocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ DWORD WINAPI websocket_run(LPVOID lpParam)
int n = 0;

while (n >= 0) {
n = lws_service(context, 0);
n = lws_service(context, 50);
}

lws_context_destroy(context);
Expand Down

0 comments on commit 44d0f58

Please sign in to comment.