mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
Track setup session termination
This commit is contained in:
@@ -83,6 +83,13 @@ BridgeSetupSession.prototype.handleWriteRequest = function(request) {
|
||||
} else if (this.currentStage === 4) {
|
||||
this.handleManageAccessory(request);
|
||||
}
|
||||
} else if (request.type === "Terminate") {
|
||||
this.transactionID = request.tid;
|
||||
this.validSession = false;
|
||||
|
||||
if (this.currentStage === 3) {
|
||||
this.currentPlatformInstance.configurationRequestHandler(this.currentPlatformContext, request, this.pluginResponseHandler.bind(this));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user