wifi(implementation): Clear wifi event callback objects while stopping am: 4c1b6780b4

Change-Id: Ibd07d9585b3048c175888296b2bef570ba14ee4b
This commit is contained in:
Automerger Merge Worker
2020-01-29 21:34:10 +00:00

View File

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