mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
Address the problem that callback get invoked with wrong signature 😅
This commit is contained in:
@@ -55,7 +55,7 @@ BridgeSetupManager.prototype.handleReadRequest = function(callback, context) {
|
||||
}
|
||||
|
||||
if (!this.session) {
|
||||
callback(null);
|
||||
callback(null, null);
|
||||
} else {
|
||||
this.session.handleReadRequest(callback);
|
||||
}
|
||||
|
||||
@@ -180,5 +180,5 @@ BridgeSetupSession.prototype.sendResponse = function(response) {
|
||||
}
|
||||
|
||||
BridgeSetupSession.prototype.handleReadRequest = function(callback) {
|
||||
callback(this.lastResponse);
|
||||
callback(null, this.lastResponse);
|
||||
}
|
||||
Reference in New Issue
Block a user