This commit is contained in:
calzoneman 2015-10-16 20:23:41 -07:00
parent 327b9faedb
commit 217ed115a3

View file

@ -740,9 +740,13 @@ PlaylistModule.prototype.handleAssignLeader = function (user, data) {
this.channel.logger.log("[playlist] Resuming autolead");
if (this.current !== null) {
// Ensure the video is unpaused before resuming autolead.
// In the past, people have reported stuck playlists because
// they assigned leader, paused, then removed leader.
this.current.media.paused = false;
this.sendMediaUpdate(this.channel.users);
if (!this._leadInterval) {
if (!this._leadInterval && this.current.media.seconds > 0) {
this._lastUpdate = Date.now();
this._leadInterval = setInterval(this._leadLoop.bind(this), 1000);
this._leadLoop();