Merge branch '3.0' of github.com:calzoneman/sync into 3.0

This commit is contained in:
calzoneman 2014-03-04 16:22:29 -06:00
commit 690ea9dbde
2 changed files with 3 additions and 1 deletions

View File

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

View File

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