platform: esp32: wifi: drop event subscriptions on stop
This commit is contained in:
parent
2af9918239
commit
4b256bc0d9
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user