From d2d2e851b0778b6753e86257a4065bb49f58795b Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Mon, 18 Nov 2024 11:32:13 +0100 Subject: [PATCH] async: fix assync call pop error --- src/http/async/tls.zig/connection.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/async/tls.zig/connection.zig b/src/http/async/tls.zig/connection.zig index 9ccd9c53..7a6afcbe 100644 --- a/src/http/async/tls.zig/connection.zig +++ b/src/http/async/tls.zig/connection.zig @@ -292,7 +292,7 @@ pub fn Connection(comptime Stream: type) type { if (read_buf_len == 0) { // read another buffer - c.async_next(ctx.stream(), ctx, onReadv) catch |err| return ctx.pop(err); + return c.async_next(ctx.stream(), ctx, onReadv) catch |err| return ctx.pop(err); } ctx._tls_read_buf = ctx._tls_read_buf.?[n..];