summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--srec_jni/android_speech_srec_MicrophoneInputStream.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/srec_jni/android_speech_srec_MicrophoneInputStream.cpp b/srec_jni/android_speech_srec_MicrophoneInputStream.cpp
index 7cb56bb..1a48ab9 100644
--- a/srec_jni/android_speech_srec_MicrophoneInputStream.cpp
+++ b/srec_jni/android_speech_srec_MicrophoneInputStream.cpp
@@ -94,9 +94,7 @@ static JNIEXPORT jint JNICALL Java_android_speech_srec_Recognizer_AudioRecordRea
static JNIEXPORT void JNICALL Java_android_speech_srec_Recognizer_AudioRecordStop
(JNIEnv *env, jclass clazz, jint audioRecord) {
- if (int rtn = ((AudioRecord*)audioRecord)->stop()) {
- throwException(env, "java/io/IOException", "AudioRecord::stop failed %d", rtn);
- }
+ ((AudioRecord*)audioRecord)->stop();
}
static JNIEXPORT void JNICALL Java_android_speech_srec_Recognizer_AudioRecordDelete