Skip to content

Commit c45e7c4

Browse files
committed
Revert
1 parent 9c36155 commit c45e7c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

io/zenoh-transport/src/unicast/lowlatency/transport.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,17 @@ impl TransportUnicastLowlatency {
122122
// Delete the transport on the manager
123123
let _ = self.manager.del_transport_unicast(&self.config.zid).await;
124124

125-
if let Some(val) = zasyncwrite!(self.link).as_ref() {
126-
let _ = val.close(Some(close::reason::GENERIC)).await;
127-
}
128-
129125
// Close and drop the link
130126
self.token.cancel();
131127
self.tracker.close();
132128
self.tracker.wait().await;
133129
// self.stop_keepalive().await;
134130
// self.stop_rx().await;
135131

132+
if let Some(val) = zasyncwrite!(self.link).as_ref() {
133+
let _ = val.close(Some(close::reason::GENERIC)).await;
134+
}
135+
136136
// Notify the callback that we have closed the transport
137137
if let Some(cb) = callback.as_ref() {
138138
cb.closed();

0 commit comments

Comments
 (0)