diff --git a/changelog b/changelog index 2be2b8d8..4f219378 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,7 @@ +Wed Oct 02 09:35 2013 CDT + * lib/channel.js: Fix the use of the wrong variable when checking for + maximum video length + Tue Oct 01 22:57 2013 CDT * lib/asyncqueue.js: Add a generalized queue class for queueing async functions to execute in order diff --git a/lib/channel.js b/lib/channel.js index ed1744c8..224a94b1 100644 --- a/lib/channel.js +++ b/lib/channel.js @@ -1402,7 +1402,7 @@ Channel.prototype.addMedia = function(data, user) { } var afterData = function (q, c, m) { - if (data.maxlength && data.seconds > data.maxlength) { + if (data.maxlength && m.seconds > data.maxlength) { user.socket.emit("queueFail", "Media is too long!"); q.release();