Permalink
Browse files

Uses the new verison of utilities.network

  • Loading branch information...
1 parent 0ce5658 commit c77c155d1e4c989f79f6c024ca75d4a50292c1a3 @MiguelMadero committed Oct 10, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/cluster/worker.js
View
@@ -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 {

0 comments on commit c77c155

Please sign in to comment.