rt: Move rust_chan::send to rust_port::send

This commit is contained in:
Brian Anderson
2011-11-10 17:53:19 -08:00
parent 371574f64b
commit 793da65a8e
7 changed files with 33 additions and 36 deletions

View File

@@ -133,8 +133,10 @@ rust_task::~rust_task()
msg.id = user.id;
msg.result = failed ? tr_failure : tr_success;
target->send(&msg);
target->deref();
if (target->is_associated()) {
target->port->send(&msg);
target->deref();
}
}
}