This commit is contained in:
Calvin Montgomery 2014-03-04 11:57:05 -06:00
parent 379c121350
commit f992d625fb
2 changed files with 3 additions and 1 deletions

View File

@ -1899,7 +1899,7 @@ Channel.prototype.deleteMedia = function (uid, callback) {
*/ */
Channel.prototype.setTemp = function (uid, temp) { Channel.prototype.setTemp = function (uid, temp) {
var item = this.playlist.items.find(uid); var item = this.playlist.items.find(uid);
if (item == null) { if (item === false) {
return; return;
} }

View File

@ -158,6 +158,8 @@ Server.prototype.unloadChannel = function (chan) {
chan.saveState(); chan.saveState();
} }
chan.logger.log("[init] Channel shutting down");
chan.playlist.die(); chan.playlist.die();
chan.logger.close(); chan.logger.close();
for (var i = 0; i < this.channels.length; i++) { for (var i = 0; i < this.channels.length; i++) {