diff --git a/lib/rpc-client/mailstation.js b/lib/rpc-client/mailstation.js index 38b3b94..cf9c3bc 100644 --- a/lib/rpc-client/mailstation.js +++ b/lib/rpc-client/mailstation.js @@ -322,6 +322,7 @@ var lazyConnect = function(tracer, station, serverId, factory, cb) { var server = station.servers[serverId]; if(!server) { logger.error('[pomelo-rpc] unknown server: %s', serverId); + return false; } var mailbox = factory.create(server, station.opts); station.connecting[serverId] = true; @@ -381,4 +382,4 @@ var errorHandler = function(tracer, station, err, serverId, msg, opts, flag, cb) */ module.exports.create = function(opts) { return new MailStation(opts || {}); -}; \ No newline at end of file +}; diff --git a/package.json b/package.json index 68e1cd6..29ab78b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pomelo-rpc", - "version": "1.0.2", + "version": "1.0.4", "dependencies": { "ws": "0.8.0", "crc": "0.2.0", @@ -13,4 +13,4 @@ "mocha": ">=0.0.1", "should": ">=0.0.1" } -} \ No newline at end of file +}