Skip to content

Commit

Permalink
Don't clear a bufferSource that doesn't exist
Browse files Browse the repository at this point in the history
Fixes #1508
  • Loading branch information
goldfire committed Nov 28, 2021
1 parent d349826 commit dab32ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/howler.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -2167,6 +2167,10 @@
var self = this;
var isIOS = Howler._navigator && Howler._navigator.vendor.indexOf('Apple') >= 0;

if (!node.bufferSource) {
return self;
}

if (Howler._scratchBuffer && node.bufferSource) {
node.bufferSource.onended = null;
node.bufferSource.disconnect(0);
Expand Down

0 comments on commit dab32ba

Please sign in to comment.