Skip to content

Commit

Permalink
Don't add seek without value to queue when loading
Browse files Browse the repository at this point in the history
Fixes #1189
  • Loading branch information
goldfire committed Oct 24, 2020
1 parent f851cad commit 289bcda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/howler.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@
}

// If the sound hasn't loaded, add it to the load queue to seek when capable.
if (self._state !== 'loaded' || self._playLock) {
if (typeof seek === 'number' && (self._state !== 'loaded' || self._playLock)) {
self._queue.push({
event: 'seek',
action: function() {
Expand Down

0 comments on commit 289bcda

Please sign in to comment.