diff options
author | Gregory Terzian <gterzian@users.noreply.github.com> | 2020-06-24 15:07:48 +0800 |
---|---|---|
committer | Gregory Terzian <gterzian@users.noreply.github.com> | 2020-06-30 13:22:38 +0800 |
commit | 44ebca72da45575df4e5970e25920c46c14aa0cb (patch) | |
tree | 88a9ed7d5529b9b83425d7b7cdd9b86f18ec12c2 /components/servo/lib.rs | |
parent | 0b61cfc3ae803ac0f9deef937f890f83b24c9a35 (diff) | |
download | servo-44ebca72da45575df4e5970e25920c46c14aa0cb.tar.gz servo-44ebca72da45575df4e5970e25920c46c14aa0cb.zip |
ensure clean shutdown of all threads running JS
Diffstat (limited to 'components/servo/lib.rs')
-rw-r--r-- | components/servo/lib.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/components/servo/lib.rs b/components/servo/lib.rs index e518d1aaa3d..74e286c6e5e 100644 --- a/components/servo/lib.rs +++ b/components/servo/lib.rs @@ -1051,11 +1051,7 @@ pub fn run_content_process(token: String) { set_logger(content.script_to_constellation_chan().clone()); - let background_hang_monitor_register = if opts::get().background_hang_monitor { - content.register_with_background_hang_monitor() - } else { - None - }; + let background_hang_monitor_register = content.register_with_background_hang_monitor(); content.start_all::<script_layout_interface::message::Msg, layout_thread::LayoutThread, |