diff --git a/embassy-net/src/lib.rs b/embassy-net/src/lib.rs index c41faee2f..798962875 100644 --- a/embassy-net/src/lib.rs +++ b/embassy-net/src/lib.rs @@ -860,6 +860,9 @@ impl Inner { let socket = s.sockets.get_mut::(dhcp_handle); if self.link_up { + if old_link_up != self.link_up { + socket.reset(); + } match socket.poll() { None => {} Some(dhcpv4::Event::Deconfigured) => {