From 19d778e8baf1741309ff3c1a50bad0619ec6ea13 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Wed, 24 Apr 2013 12:45:17 -0500 Subject: [PATCH] Throttle video queues --- channel.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/channel.js b/channel.js index 6e20936b..7a2b0122 100644 --- a/channel.js +++ b/channel.js @@ -651,6 +651,11 @@ Channel.prototype.tryQueue = function(user, data) { !this.opts.qopen_allow_qnext) { return; } + + if(user.noflood("queue", 0.25)) { + return; + } + this.enqueue(data); }