Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
Fix: setImmediate bind to this of advance
Browse files Browse the repository at this point in the history
  • Loading branch information
thedark1337 committed Aug 22, 2016
1 parent 90ae2db commit d9fa3ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/room.js
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ Room.prototype.setMedia = function(mediaInfo, mediaStartTime) {
*/
Room.prototype.advance = function(data) {
if (songHistory.length < 1) {
setImmediate(this.advance, data);
setImmediate(this.advance.bind(this), data);
return;
}

Expand Down

0 comments on commit d9fa3ac

Please sign in to comment.