diff --git a/lib/remote-connector.js b/lib/remote-connector.js index 118d637..e351932 100644 --- a/lib/remote-connector.js +++ b/lib/remote-connector.js @@ -49,7 +49,7 @@ RemoteConnector.initialize = function(dataSource, callback) { var connector = dataSource.connector = new RemoteConnector(dataSource.settings); connector.connect(); - setImmediate(callback); + process.nextTick(callback); }; RemoteConnector.prototype.define = function(definition) {