Cleanup failure handling around rust_new_task_in_sched - closes #2668

This commit is contained in:
Ben Blum
2012-06-28 19:01:55 -04:00
parent d91e310982
commit 6fc730baf6
5 changed files with 9 additions and 3 deletions

View File

@@ -538,6 +538,7 @@ fn spawn_raw(opts: task_opts, +f: fn~()) {
new_task_in_new_sched(sched_opts)
}
};
assert !new_task.is_null();
option::iter(opts.notify_chan) {|c|
// FIXME (#1087): Would like to do notification in Rust