Track setup session termination

This commit is contained in:
Khaos Tian
2016-02-17 17:45:47 -08:00
parent 40266af8b2
commit 815ea7abea

View File

@@ -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));
}
}
}