rt: Move rust_chan::send to rust_port::send
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user