about summary refs log tree commit diff
path: root/src/libstd/task
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-12-15 18:17:43 -0800
committerAlex Crichton <alex@alexcrichton.com>2013-12-16 22:55:49 -0800
commit39a6c9d6376f96cc8b905f00b88d20e42961206c (patch)
tree9dde8eaa226ad53aa1d80233557a30811d913ef3 /src/libstd/task
parent529e268ab900f1b6e731af64ce2aeecda3555f4e (diff)
downloadrust-39a6c9d6376f96cc8b905f00b88d20e42961206c.tar.gz
rust-39a6c9d6376f96cc8b905f00b88d20e42961206c.zip
Test fallout from std::comm rewrite
Diffstat (limited to 'src/libstd/task')
-rw-r--r--src/libstd/task/spawn.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/task/spawn.rs b/src/libstd/task/spawn.rs
index eb3e19f4a5a..1148774020a 100644
--- a/src/libstd/task/spawn.rs
+++ b/src/libstd/task/spawn.rs
@@ -171,7 +171,7 @@ pub fn spawn_raw(mut opts: TaskOpts, f: proc()) {
     if opts.notify_chan.is_some() {
         let notify_chan = opts.notify_chan.take_unwrap();
         let on_exit: proc(TaskResult) = proc(task_result) {
-            notify_chan.send(task_result)
+            notify_chan.try_send(task_result);
         };
         task.death.on_exit = Some(on_exit);
     }