Skip to content

Commit

Permalink
Uses the new verison of utilities.network
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelMadero committed Oct 10, 2012
1 parent 0ce5658 commit c77c155
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/cluster/worker.js
Expand Up @@ -76,8 +76,11 @@ Worker.prototype = new (function () {
, ssl = this.config.ssl ? ' (SSL)' : ''
, spdy = this.config.spdy ? '(SPDY)' : '';

utils.network.isPortOpen(port, hostname, function (isOpen) {
if (isOpen) {
utils.network.isPortOpen(port, hostname, function (err, isOpen) {
if (err) {
self.log.error(err);
}
else if (isOpen) {
self.log.error("The port " + port + " is already in use.");
}
else {
Expand Down

0 comments on commit c77c155

Please sign in to comment.