platform: esp32: wifi: drop event subscriptions on stop

This commit is contained in:
Victoria Fischer 2024-12-14 11:10:15 +01:00
parent 2af9918239
commit 4b256bc0d9

View File

@ -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();
}
}