async: fix assync call pop error

This commit is contained in:
Pierre Tachoire
2024-11-18 11:32:13 +01:00
parent 9149b60136
commit d2d2e851b0

View File

@@ -292,7 +292,7 @@ pub fn Connection(comptime Stream: type) type {
if (read_buf_len == 0) { if (read_buf_len == 0) {
// read another buffer // 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..]; ctx._tls_read_buf = ctx._tls_read_buf.?[n..];