Commit 6e1dc26564d91a0a016cdca19a9f81dc06ce3088

Authored by ykxie
1 parent 6b202706

修改音频重新录制六次以上bug

Showing 1 changed file with 4 additions and 1 deletions
src/js/recorder/Myna.js
@@ -140,7 +140,10 @@ @@ -140,7 +140,10 @@
140 140
141 //停止 141 //停止
142 this.stop = function() { 142 this.stop = function() {
143 - recorder.disconnect(); 143 + context.close().then(function(){
  144 + recorder.disconnect();
  145 + });
  146 +
144 } 147 }
145 148
146 //获取音频文件 149 //获取音频文件