Skip to content

Commit

Permalink
#queue(): allow unspecified callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrec committed Jan 30, 2012
1 parent f7fec58 commit 7a0eaaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/async.js
Expand Up @@ -594,7 +594,7 @@
empty: null,
drain: null,
push: function (data, callback) {
q.tasks.push({data: data, callback: callback});
q.tasks.push({data: data, callback: typeof callback === 'function' ? callback : null});
if(q.saturated && q.tasks.length == concurrency) q.saturated();
async.nextTick(q.process);
},
Expand Down

0 comments on commit 7a0eaaf

Please sign in to comment.