Skip to content

Commit

Permalink
why can't we have nice things?
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Nov 22, 2024
1 parent 29167cc commit e9bcb40
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions iroh-net/src/magicsock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1514,11 +1514,6 @@ impl Handle {
}
self.msock.closing.store(true, Ordering::Relaxed);
self.msock.actor_sender.send(ActorMessage::Shutdown).await?;
self.msock.pconn4.close().await;
if let Some(ref conn) = self.msock.pconn6 {
conn.close().await;
}

self.msock.closed.store(true, Ordering::SeqCst);
self.msock.direct_addrs.addrs.shutdown();

Expand Down
5 changes: 0 additions & 5 deletions iroh-net/src/magicsock/udp_conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ impl UdpConn {
io: self.io.clone(),
})
}

/// Closes the socket for good
pub async fn close(&self) {
self.io.close().await;
}
}

impl AsyncUdpSocket for UdpConn {
Expand Down

0 comments on commit e9bcb40

Please sign in to comment.