Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
explicit return value for fast finish state
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbender committed Mar 5, 2015
1 parent b9fbf74 commit a3a2189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/farm.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ Farm.prototype.addCall = function (call) {
Farm.prototype.end = function (callback) {
var complete = true
if (this.ending === false)
return
return false
if (callback)
this.ending = callback
else if (this.ending == null)
Expand Down

0 comments on commit a3a2189

Please sign in to comment.