Skip to content

Commit

Permalink
Merge pull request katspaugh#555 from thijstriemstra/mic-destroy-fix
Browse files Browse the repository at this point in the history
microphone plugin: stop buffer redraw immediately in destroy
  • Loading branch information
katspaugh committed Oct 26, 2015
2 parents 6792d97 + a3c2f89 commit c90a6bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/wavesurfer.microphone.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@
* Destroy the microphone plugin.
*/
destroy: function(event) {
// make sure the buffer is not redrawn during
// cleanup and demolition of this plugin.
this.paused = true;

this.stop();
},

Expand Down

0 comments on commit c90a6bb

Please sign in to comment.