From 81c612648cf404b82040496ee21288373c4a0973 Mon Sep 17 00:00:00 2001 From: Coldwings Date: Thu, 12 Oct 2023 10:49:35 +0800 Subject: [PATCH] Fix libcurl comaptible (#196) Signed-off-by: Coldwings --- 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; }