From baffe26dd1e8da568fc77da53d36cd9c77d38c1d Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Thu, 3 Feb 2022 21:01:14 -0800 Subject: Fix bug with http client --- src/thread_pool.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/thread_pool.zig') diff --git a/src/thread_pool.zig b/src/thread_pool.zig index 8281e473b..166705a81 100644 --- a/src/thread_pool.zig +++ b/src/thread_pool.zig @@ -266,7 +266,8 @@ fn _wait(self: *ThreadPool, _is_waking: bool, comptime sleep_on_idle: bool) erro if (end_count > 0) { while (HTTP.AsyncHTTP.active_requests_count.loadUnchecked() > HTTP.AsyncHTTP.max_simultaneous_requests) { - io.run_for_ns(std.time.ns_per_us * 10) catch {}; + io.run_for_ns(std.time.ns_per_ms) catch {}; + io.tick() catch {}; } } -- cgit v1.2.3