server: handle CDPWaitResult.done instead of unreachable

This commit is contained in:
Adrià Arrufat
2026-04-02 15:08:30 +02:00
parent 62f58b4c12
commit b29405749b

View File

@@ -315,10 +315,6 @@ pub const Client = struct {
}
continue;
},
error.Timeout => {
log.info(.app, "CDP timeout", .{});
return;
},
else => return wait_err,
};
@@ -328,7 +324,10 @@ pub const Client = struct {
return;
}
},
.done => unreachable,
.done => {
log.info(.app, "CDP timeout", .{});
return;
},
}
}
}