diff options
-rw-r--r-- | system/audio_hal_interface/aidl/client_interface.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/audio_hal_interface/aidl/client_interface.cc b/system/audio_hal_interface/aidl/client_interface.cc index f0af070d4d..9626ecdb40 100644 --- a/system/audio_hal_interface/aidl/client_interface.cc +++ b/system/audio_hal_interface/aidl/client_interface.cc @@ -176,7 +176,7 @@ BluetoothAudioSourceClientInterface::~BluetoothAudioSourceClientInterface() { void BluetoothAudioClientInterface::binderDiedCallbackAidl(void* ptr) { LOG(WARNING) << __func__ << ": restarting connection with new Audio Hal"; auto client = static_cast<BluetoothAudioClientInterface*>(ptr); - if (client != nullptr) { + if (client == nullptr) { LOG(ERROR) << __func__ << ": null audio HAL died!"; return; } @@ -493,4 +493,4 @@ size_t BluetoothAudioSourceClientInterface::WriteAudioData(const uint8_t* p_buf, } // namespace aidl } // namespace audio -} // namespace bluetooth
\ No newline at end of file +} // namespace bluetooth |