mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
Always monitor the CDP client socket, even on page.wait
This commit is contained in:
@@ -126,8 +126,12 @@ pub const Server = struct {
|
||||
|
||||
var last_message = timestamp();
|
||||
var http = &self.app.http;
|
||||
|
||||
http.monitorSocket(socket);
|
||||
defer http.unmonitorSocket();
|
||||
|
||||
while (true) {
|
||||
if (http.poll(20, socket)) {
|
||||
if (http.poll(10) == .extra_socket) {
|
||||
const n = posix.read(socket, client.readBuf()) catch |err| {
|
||||
log.warn(.app, "CDP read", .{ .err = err });
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user