aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/net/file_loader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/net/file_loader.rs')
-rw-r--r--src/components/net/file_loader.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/net/file_loader.rs b/src/components/net/file_loader.rs
index 67690b6547a..4a63ac5dcf0 100644
--- a/src/components/net/file_loader.rs
+++ b/src/components/net/file_loader.rs
@@ -7,6 +7,7 @@ use servo_util::io::result;
use std::io;
use std::io::File;
+use servo_util::task::spawn_named;
static READ_SIZE: uint = 1024;
@@ -30,7 +31,7 @@ pub fn factory() -> LoaderTask {
let f: LoaderTask = proc(url, start_chan) {
assert!("file" == url.scheme);
let progress_chan = start_sending(start_chan, Metadata::default(url.clone()));
- spawn(proc() {
+ spawn_named("file_loader", proc() {
// ignore_io_error causes us to get None instead of a task failure.
let _guard = io::ignore_io_error();
match File::open_mode(&Path::new(url.path), io::Open, io::Read) {