From 4b2f11fd3b4245ab1ca3c92ebc612d5878910a7a Mon Sep 17 00:00:00 2001 From: Coldwings Date: Tue, 10 Oct 2023 14:55:28 +0800 Subject: [PATCH] Fix libcurl comaptible --- net/curl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/curl.cpp b/net/curl.cpp index a35a4402..f2eeb33f 100644 --- a/net/curl.cpp +++ b/net/curl.cpp @@ -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; }