mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
Run cdp client on dedicated thread
This commit is contained in:
@@ -119,7 +119,8 @@ pub fn run(self: *Server, address: net.Address, timeout_ms: u32) !void {
|
|||||||
return error.ShuttingDown;
|
return error.ShuttingDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.handleConnection(socket, timeout_ms);
|
const thread = try std.Thread.spawn(.{}, handleConnection, .{ self, socket, timeout_ms });
|
||||||
|
thread.join();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user