Fix media length limit
This commit is contained in:
parent
9d35636be2
commit
abc9c398f4
|
@ -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
|
Tue Oct 01 22:57 2013 CDT
|
||||||
* lib/asyncqueue.js: Add a generalized queue class for queueing async
|
* lib/asyncqueue.js: Add a generalized queue class for queueing async
|
||||||
functions to execute in order
|
functions to execute in order
|
||||||
|
|
|
@ -1402,7 +1402,7 @@ Channel.prototype.addMedia = function(data, user) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var afterData = function (q, c, m) {
|
var afterData = function (q, c, m) {
|
||||||
if (data.maxlength && data.seconds > data.maxlength) {
|
if (data.maxlength && m.seconds > data.maxlength) {
|
||||||
user.socket.emit("queueFail",
|
user.socket.emit("queueFail",
|
||||||
"Media is too long!");
|
"Media is too long!");
|
||||||
q.release();
|
q.release();
|
||||||
|
|
Loading…
Reference in a new issue