eachLimit on move all topics

v1.18.x
barisusakli 11 years ago
parent 115598f382
commit c6c23aad5e

@ -304,7 +304,7 @@ SocketTopics.moveAll = function(socket, data, callback) {
return callback(err); return callback(err);
} }
async.each(tids, function(tid, next) { async.eachLimit(tids, 10, function(tid, next) {
threadTools.move(tid, data.cid, socket.uid, next); threadTools.move(tid, data.cid, socket.uid, next);
}, callback); }, callback);
}); });

Loading…
Cancel
Save