Skip to content

Commit d08b298

Browse files
committed
Edge case were play is called before preloading, causing an RTE
1 parent 3730993 commit d08b298

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/soundjs/AbstractSoundInstance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ this.createjs = this.createjs || {};
584584
**/
585585
p._setPlaybackResource = function (value) {
586586
this._playbackResource = value;
587-
if (this._duration == 0) { this._setDurationFromSource(); }
587+
if (this._duration == 0 && this._playbackResource) { this._setDurationFromSource(); }
588588
return this;
589589
};
590590

0 commit comments

Comments
 (0)