mirror of
https://github.com/mtan93/homebridge.git
synced 2026-04-06 22:04:34 +01: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) {
|
if (!this.session) {
|
||||||
callback(null);
|
callback(null, null);
|
||||||
} else {
|
} else {
|
||||||
this.session.handleReadRequest(callback);
|
this.session.handleReadRequest(callback);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user