forked from GitHub/dbot
put eachseries in process.nextTick
This commit is contained in:
parent
ac8783dbd6
commit
dfaa795b8f
@ -196,6 +196,7 @@ var users = function(dbot) {
|
||||
dbot.instance.addListener('366', 'users', function(event) {
|
||||
var checkChannel = function(channel) {
|
||||
async.eachSeries(_.keys(event.channel.nicks), function(nick, next) {
|
||||
process.nextTick(function() {
|
||||
var staff = event.channel.nicks[nick];
|
||||
|
||||
this.api.resolveUser(event.server, nick, function(user) {
|
||||
@ -213,6 +214,7 @@ var users = function(dbot) {
|
||||
this.internalAPI.createUser(event.server, nick, checkChannelUser);
|
||||
}
|
||||
}.bind(this));
|
||||
});
|
||||
}.bind(this), function(err) {
|
||||
console.log('finished checking ' + channel);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user