Commit e482ef14 authored by deuce's avatar deuce
Browse files

Add missing else in last commit.

parent 6efd59ff
...@@ -171,6 +171,7 @@ static ptrdiff_t js_socket_recv(js_socket_private_t *p, void *buf, size_t len, i ...@@ -171,6 +171,7 @@ static ptrdiff_t js_socket_recv(js_socket_private_t *p, void *buf, size_t len, i
tv.tv_sec = timeout; tv.tv_sec = timeout;
if(select(p->sock+1,&socket_set,NULL,NULL,&tv)==1) if(select(p->sock+1,&socket_set,NULL,NULL,&tv)==1)
ret = recv(p->sock, buf, len, flags); ret = recv(p->sock, buf, len, flags);
else
ret = 0; ret = 0;
} }
else { else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment