diff --git a/src/platform/esp32.rs b/src/platform/esp32.rs index 3c1784f..1b36407 100644 --- a/src/platform/esp32.rs +++ b/src/platform/esp32.rs @@ -516,6 +516,8 @@ impl Task for WifiTask { fn stop(&mut self) { log::info!("Stopping wifi"); + self.wifi_sub.take().unwrap(); + self.ip_sub.take().unwrap(); self.disconnect(); } }