Skip to content

Commit

Permalink
Fix sound node reference
Browse files Browse the repository at this point in the history
  • Loading branch information
goldfire committed Oct 6, 2017
1 parent fcbfdb0 commit 89442df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/howler.core.js
Expand Up @@ -1705,7 +1705,7 @@
// If we are using IE and there was network latency we may be clipping
// audio before it completes playing. Lets check the node to make sure it
// believes it has completed, before ending the playback.
if (!self._webAudio && self._node && !self._node.ended) {
if (!self._webAudio && sound._node && !sound._node.ended) {
setTimeout(self._ended.bind(self, sound), 100);
return self;
}
Expand Down

0 comments on commit 89442df

Please sign in to comment.