Skip to content

Commit

Permalink
Update portscanner.js
Browse files Browse the repository at this point in the history
passing along error
  • Loading branch information
skilesare committed Feb 4, 2014
1 parent c1544a1 commit 3ed682a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/portscanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function findAPortWithStatus(status, startPort, endPort, host, callback) {
numberOfPortsChecked++
if (statusOfPort === status) {
foundPort = true
callback(null, port)
callback(error, port)
}
else if (error) {
callback(error)
Expand Down

0 comments on commit 3ed682a

Please sign in to comment.