aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/task_source/networking.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/task_source/networking.rs')
-rw-r--r--components/script/task_source/networking.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/task_source/networking.rs b/components/script/task_source/networking.rs
index ed192d08003..9058f9653e4 100644
--- a/components/script/task_source/networking.rs
+++ b/components/script/task_source/networking.rs
@@ -5,7 +5,7 @@
use msg::constellation_msg::PipelineId;
use script_runtime::{CommonScriptMsg, ScriptChan, ScriptThreadEventCategory};
use task::{TaskCanceller, TaskOnce};
-use task_source::TaskSource;
+use task_source::{TaskSource, TaskSourceName};
#[derive(JSTraceable)]
pub struct NetworkingTaskSource(pub Box<ScriptChan + Send + 'static>, pub PipelineId);
@@ -17,6 +17,8 @@ impl Clone for NetworkingTaskSource {
}
impl TaskSource for NetworkingTaskSource {
+ const NAME: TaskSourceName = TaskSourceName::Networking;
+
fn queue_with_canceller<T>(
&self,
task: T,