From 4b256bc0d9f15e068bd35a760c9325cc1320a34a Mon Sep 17 00:00:00 2001 From: Victoria Fischer Date: Sat, 14 Dec 2024 11:10:15 +0100 Subject: [PATCH] platform: esp32: wifi: drop event subscriptions on stop --- src/platform/esp32.rs | 2 ++ 1 file changed, 2 insertions(+) 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(); } }