diff --git a/app/src/main/java/xdsopl/robot36/MainActivity.java b/app/src/main/java/xdsopl/robot36/MainActivity.java index c34f24a..5f048bd 100644 --- a/app/src/main/java/xdsopl/robot36/MainActivity.java +++ b/app/src/main/java/xdsopl/robot36/MainActivity.java @@ -229,6 +229,8 @@ private void initAudioRecord() { } startListening(); } else { + audioRecord.release(); + audioRecord = null; setStatus(R.string.audio_init_failed); } } catch (IllegalArgumentException e) {