This commit is contained in:
Karl Seguin
2026-05-22 09:40:06 +08:00
parent 5c20a79c08
commit 05a373dccc

View File

@@ -558,9 +558,9 @@ pub fn syncRequest(self: *Client, allocator: Allocator, req: Request) !SyncRespo
while (sync_ctx.completion == .in_progress) {
self.tick(200, .sync_wait) catch |err| {
if (sync_ctx.completion == .in_progress) {
// tick failed for a reason unrelated to our transfer (likely OOM or
// client disconnect). transfer.req.ctx points at &sync_ctx on this
// stack — abort to sever that reference before we return
// tick failed for a reason unrelated to our transfer (likely OOM or
// client disconnect). transfer.req.ctx points at &sync_ctx on this
// stack — abort to sever that reference before we return
transfer.abort(err);
}
return err;