aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/task.rs
diff options
context:
space:
mode:
authorGlenn Watson <gw@intuitionlibrary.com>2015-05-19 16:14:25 +1000
committerGlenn Watson <gw@intuitionlibrary.com>2015-05-19 16:14:25 +1000
commit35a570ab66227fb640e64bd50373f1e1a9f51b22 (patch)
tree13dbe09505867725431267f7bd7ad0b033dec1c8 /components/util/task.rs
parent90aacf00f866c7ef3b858d84585bd5142f74c9ee (diff)
downloadservo-35a570ab66227fb640e64bd50373f1e1a9f51b22.tar.gz
servo-35a570ab66227fb640e64bd50373f1e1a9f51b22.zip
Fix several hangs / panics during pipeline cleanup of in progress loads.
This fixes a hang found while testing the jQuery test suite.
Diffstat (limited to 'components/util/task.rs')
-rw-r--r--components/util/task.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/util/task.rs b/components/util/task.rs
index de206526f44..d00f29c1c67 100644
--- a/components/util/task.rs
+++ b/components/util/task.rs
@@ -18,7 +18,7 @@ pub fn spawn_named<F>(name: String, f: F)
}
/// Arrange to send a particular message to a channel if the task fails.
-pub fn spawn_named_with_send_on_failure<F, T>(name: &'static str,
+pub fn spawn_named_with_send_on_failure<F, T>(name: String,
state: task_state::TaskState,
f: F,
msg: T,