diff --git a/iroh-net/src/magicsock.rs b/iroh-net/src/magicsock.rs index 4a79493a2f..13f7426940 100644 --- a/iroh-net/src/magicsock.rs +++ b/iroh-net/src/magicsock.rs @@ -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(); diff --git a/iroh-net/src/magicsock/udp_conn.rs b/iroh-net/src/magicsock/udp_conn.rs index f90794130f..efd374c6ef 100644 --- a/iroh-net/src/magicsock/udp_conn.rs +++ b/iroh-net/src/magicsock/udp_conn.rs @@ -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 {