mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-04-03 16:10:29 +00:00
server: handle CDPWaitResult.done instead of unreachable
This commit is contained in:
@@ -315,10 +315,6 @@ pub const Client = struct {
|
|||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
},
|
},
|
||||||
error.Timeout => {
|
|
||||||
log.info(.app, "CDP timeout", .{});
|
|
||||||
return;
|
|
||||||
},
|
|
||||||
else => return wait_err,
|
else => return wait_err,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -328,7 +324,10 @@ pub const Client = struct {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
.done => unreachable,
|
.done => {
|
||||||
|
log.info(.app, "CDP timeout", .{});
|
||||||
|
return;
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user