diff --git a/webrtc/modules/audio_device/android/audio_manager_jni.cc b/webrtc/modules/audio_device/android/audio_manager_jni.cc index b8dec2a932..b04b744357 100644 --- a/webrtc/modules/audio_device/android/audio_manager_jni.cc +++ b/webrtc/modules/audio_device/android/audio_manager_jni.cc @@ -25,7 +25,7 @@ class AttachThreadScoped { if (ret_val == JNI_EDETACHED) { // Attach the thread to the Java VM. ret_val = jvm_->AttachCurrentThread(&env_, NULL); - attached_ = ret_val > 0; + attached_ = ret_val == JNI_OK; assert(attached_); } }