From fb878f33d1a15425c59f94ce5202010c5400f9ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Jim=C3=A9nez=20Moreno?= Date: Wed, 29 Mar 2017 20:34:37 +0200 Subject: Terminate timer scheduler thread during shutdown --- components/script/dom/globalscope.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'components/script/dom/globalscope.rs') diff --git a/components/script/dom/globalscope.rs b/components/script/dom/globalscope.rs index 2b4d3fc6886..73ba61e4557 100644 --- a/components/script/dom/globalscope.rs +++ b/components/script/dom/globalscope.rs @@ -37,7 +37,7 @@ use profile_traits::{mem, time}; use script_runtime::{CommonScriptMsg, ScriptChan, ScriptPort}; use script_thread::{MainThreadScriptChan, RunnableWrapper, ScriptThread}; use script_traits::{MsDuration, ScriptMsg as ConstellationMsg, TimerEvent}; -use script_traits::{TimerEventId, TimerEventRequest, TimerSource}; +use script_traits::{TimerEventId, TimerSchedulerMsg, TimerSource}; use servo_url::ServoUrl; use std::cell::Cell; use std::collections::HashMap; @@ -82,7 +82,7 @@ pub struct GlobalScope { constellation_chan: IpcSender, #[ignore_heap_size_of = "channels are hard"] - scheduler_chan: IpcSender, + scheduler_chan: IpcSender, /// https://html.spec.whatwg.org/multipage/#in-error-reporting-mode in_error_reporting_mode: Cell, @@ -101,7 +101,7 @@ impl GlobalScope { mem_profiler_chan: mem::ProfilerChan, time_profiler_chan: time::ProfilerChan, constellation_chan: IpcSender, - scheduler_chan: IpcSender, + scheduler_chan: IpcSender, resource_threads: ResourceThreads, timer_event_chan: IpcSender) -> Self { @@ -229,7 +229,7 @@ impl GlobalScope { &self.constellation_chan } - pub fn scheduler_chan(&self) -> &IpcSender { + pub fn scheduler_chan(&self) -> &IpcSender { &self.scheduler_chan } -- cgit v1.2.3