From 79bb6a96cd51044a781a78392b0bfdc749c2697a Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Mon, 14 Jul 2014 21:13:45 -0700 Subject: [PATCH] Fix exception --- lib/channel/playlist.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/channel/playlist.js b/lib/channel/playlist.js index fd3b3c90..0c05a53e 100644 --- a/lib/channel/playlist.js +++ b/lib/channel/playlist.js @@ -1034,7 +1034,10 @@ PlaylistModule.prototype._leadLoop = function() { } if (!this.channel || this.channel.dead) { - this.die(); + if (this._leadInterval) { + clearInterval(this._leadInterval); + this._leadInterval = false; + } return; }