mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-03 12:07:58 +00:00
wifi(implementation): Clear wifi event callback objects while stopping am: 4c1b6780b4
Change-Id: Ibd07d9585b3048c175888296b2bef570ba14ee4b
This commit is contained in:
@@ -124,6 +124,8 @@ WifiStatus Wifi::startInternal() {
|
||||
}
|
||||
}
|
||||
LOG(ERROR) << "Wifi HAL start failed";
|
||||
// Clear the event callback objects since the HAL start failed.
|
||||
event_cb_handler_.invalidate();
|
||||
}
|
||||
return wifi_status;
|
||||
}
|
||||
@@ -158,6 +160,8 @@ WifiStatus Wifi::stopInternal(
|
||||
}
|
||||
LOG(ERROR) << "Wifi HAL stop failed";
|
||||
}
|
||||
// Clear the event callback objects since the HAL is now stopped.
|
||||
event_cb_handler_.invalidate();
|
||||
return wifi_status;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user