From 793da65a8eb060268056861d1a82761747aa52a2 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 10 Nov 2011 17:53:19 -0800 Subject: rt: Move rust_chan::send to rust_port::send --- src/rt/rust_task.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/rt/rust_task.cpp') diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 5043f9ec4b0..854c2c74462 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -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(); + } } } -- cgit 1.4.1-3-g733a5