diff --git a/lib/bridgeSetupManager.js b/lib/bridgeSetupManager.js index 5d61b6c..d256b74 100644 --- a/lib/bridgeSetupManager.js +++ b/lib/bridgeSetupManager.js @@ -55,7 +55,7 @@ BridgeSetupManager.prototype.handleReadRequest = function(callback, context) { } if (!this.session) { - callback(null); + callback(null, null); } else { this.session.handleReadRequest(callback); } diff --git a/lib/bridgeSetupSession.js b/lib/bridgeSetupSession.js index eb70a96..ed8dea9 100644 --- a/lib/bridgeSetupSession.js +++ b/lib/bridgeSetupSession.js @@ -180,5 +180,5 @@ BridgeSetupSession.prototype.sendResponse = function(response) { } BridgeSetupSession.prototype.handleReadRequest = function(callback) { - callback(this.lastResponse); + callback(null, this.lastResponse); } \ No newline at end of file