add wisp support

This commit is contained in:
ading2210 2024-01-15 20:57:50 -05:00
parent 248d5b0161
commit 95121068bc
5 changed files with 17 additions and 5 deletions

View file

@ -50,15 +50,14 @@ void request_loop() {
break;
}
//ensure we dont block the main thread
emscripten_sleep(0);
int msgq = 0;
curl_msg = curl_multi_info_read(multi_handle, &msgq);
if (curl_msg && curl_msg->msg == CURLMSG_DONE) {
finish_request(curl_msg);
}
//ensure we dont block the main thread
emscripten_sleep(0);
} while(request_active);
}