diff options
Diffstat (limited to 'src/rt/rust_upcall.cpp')
| -rw-r--r-- | src/rt/rust_upcall.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp index 90d6f6d9..01eaf744 100644 --- a/src/rt/rust_upcall.cpp +++ b/src/rt/rust_upcall.cpp @@ -116,6 +116,14 @@ upcall_flush_chan(rust_task *task, rust_chan *chan) { return; } + // We cannot flush if the target port was dropped. + if (chan->is_associated() == false) { + return; + } + + A(dom, chan->is_associated(), + "Channel should be associated to a port."); + A(dom, chan->port->is_proxy() == false, "Channels to remote ports should be flushed automatically."); |