Skip to content
Browse files

Only add the output stream write cb if there's a cb

  • Loading branch information...
1 parent 7c4c8d4 commit ea8f567428fa49d32775ad2949ccb1887ced9c9e @isaacs isaacs committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/utils/output.js
View
2 lib/utils/output.js
@@ -101,7 +101,7 @@ function write (args, stream, lf, cb) {
var flushed = stream.write(msg)
if (flushed && cb) {
process.nextTick(cb)
- } else {
+ } else if (cb) {
stream.once("drain", cb)
}
return flushed

0 comments on commit ea8f567

Please sign in to comment.
Something went wrong with that request. Please try again.