diff --git a/lib/connection.js b/lib/connection.js index ecf375b9f28..0f646b72b42 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -858,7 +858,7 @@ Connection.prototype.openUri = function(uri, options, callback) { this.then = function(resolve, reject) { return this.$initialConnection.then(() => { if (typeof resolve === 'function') { - resolve(_this); + return resolve(_this); } }, reject); };