Address the problem that callback get invoked with wrong signature 😅

This commit is contained in:
Khaos Tian
2016-02-13 22:21:54 -08:00
parent 8de375a4b0
commit 902fdded65
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ BridgeSetupManager.prototype.handleReadRequest = function(callback, context) {
} }
if (!this.session) { if (!this.session) {
callback(null); callback(null, null);
} else { } else {
this.session.handleReadRequest(callback); this.session.handleReadRequest(callback);
} }

View File

@@ -180,5 +180,5 @@ BridgeSetupSession.prototype.sendResponse = function(response) {
} }
BridgeSetupSession.prototype.handleReadRequest = function(callback) { BridgeSetupSession.prototype.handleReadRequest = function(callback) {
callback(this.lastResponse); callback(null, this.lastResponse);
} }