aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2017-09-18 10:51:07 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2017-09-18 10:51:07 +0200
commit5ed6abe22c69fb71685c297b7a59e48550c5dbb5 (patch)
tree6d1ae89f9bc3530a2107920d8c11bea0a3dcfee9
parenta7655a3f84c4c379328ab28b9000cd923516b412 (diff)
downloadservo-5ed6abe22c69fb71685c297b7a59e48550c5dbb5.tar.gz
servo-5ed6abe22c69fb71685c297b7a59e48550c5dbb5.zip
Preserve the name of inner tasks in cancellable ones
-rw-r--r--components/script/task.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/task.rs b/components/script/task.rs
index 35f202480ca..08f5c499aa6 100644
--- a/components/script/task.rs
+++ b/components/script/task.rs
@@ -82,6 +82,10 @@ impl<T> Task for CancellableTask<T>
where
T: Send + Task,
{
+ fn name(&self) -> &'static str {
+ self.inner.name()
+ }
+
fn run(self: Box<Self>) {
if !self.is_cancelled() {
self.inner.run()