mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Check the BHM option before starting it in multi-process mode.
This commit is contained in:
parent
516279e24f
commit
8b9390d68c
1 changed files with 5 additions and 2 deletions
|
@ -1016,8 +1016,11 @@ pub fn run_content_process(token: String) {
|
|||
create_sandbox();
|
||||
}
|
||||
|
||||
let background_hang_monitor_register =
|
||||
unprivileged_content.register_with_background_hang_monitor();
|
||||
let background_hang_monitor_register = if opts::get().background_hang_monitor {
|
||||
unprivileged_content.register_with_background_hang_monitor()
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
// send the required channels to the service worker manager
|
||||
let sw_senders = unprivileged_content.swmanager_senders();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue