Skip to content

Commit

Permalink
Merge pull request #13 from skilesare/master
Browse files Browse the repository at this point in the history
Update portscanner.js
  • Loading branch information
EndangeredMassa committed Feb 4, 2014
2 parents d3b029c + 3ed682a commit 4407d6f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/portscanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ function findAPortWithStatus(status, startPort, endPort, host, callback) {
var checkNextPort = function(callback) {
portscanner.checkPortStatus(port, host, function(error, statusOfPort) {
numberOfPortsChecked++
if (error) {
callback(error)
}
else if (statusOfPort === status) {
if (statusOfPort === status) {
foundPort = true
callback(null, port)
callback(error, port)
}
else if (error) {
callback(error)
}
else {
port++
Expand Down

0 comments on commit 4407d6f

Please sign in to comment.