Skip to content

Commit

Permalink
Fix libcurl comaptible (#196)
Browse files Browse the repository at this point in the history
Signed-off-by: Coldwings <coldwings@me.com>
  • Loading branch information
Coldwings committed Oct 12, 2023
1 parent 878ecb7 commit 81c6126
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/curl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ class cURLLoop : public Object {
for (int i = 0; i < cnt; i++) {
int fd = cbs[i] >> 2;
int ev = cbs[i] & 0b11;
if (fd != CURL_SOCKET_BAD && ev != 0) do_action(fd, ev);
if (fd != CURL_SOCKET_BAD && ev != 0)
photon::thread_create11(&do_action, fd, ev);
}
return 0;
}
Expand Down

0 comments on commit 81c6126

Please sign in to comment.