diff --git a/src/SoundPlayer.js b/src/SoundPlayer.js index 35e9e67..009b3d5 100644 --- a/src/SoundPlayer.js +++ b/src/SoundPlayer.js @@ -48,7 +48,7 @@ class SoundPlayer { * Stop the sound */ stop () { - if (this.bufferSource) { + if (this.bufferSource && this.isPlaying) { this.bufferSource.stop(); } this.isPlaying = false;