Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions io/zenoh-transport/src/unicast/lowlatency/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@
c_transport.manager.config.zid,
c_transport.config.zid
);
let _ = c_transport.finalize(0).await;

// Spawn a task to avoid a deadlock waiting for this same task
// to finish in the close() joining its handle
// WARN: Must be spawned on RX
zenoh_runtime::ZRuntime::RX.spawn(async move { c_transport.finalize(0).await });

Check warning on line 139 in io/zenoh-transport/src/unicast/lowlatency/link.rs

View check run for this annotation

Codecov / codecov/patch

io/zenoh-transport/src/unicast/lowlatency/link.rs#L139

Added line #L139 was not covered by tests
}
};
self.tracker.spawn_on(task, &ZRuntime::TX);
Expand Down Expand Up @@ -202,7 +206,11 @@
c_transport.manager.config.zid,
c_transport.config.zid
);
let _ = c_transport.finalize(0).await;

// Spawn a task to avoid a deadlock waiting for this same task
// to finish in the close() joining its handle
// WARN: Must be spawned on RX
zenoh_runtime::ZRuntime::RX.spawn(async move { c_transport.finalize(0).await });

Check warning on line 213 in io/zenoh-transport/src/unicast/lowlatency/link.rs

View check run for this annotation

Codecov / codecov/patch

io/zenoh-transport/src/unicast/lowlatency/link.rs#L213

Added line #L213 was not covered by tests
}
},
&ZRuntime::RX,
Expand Down