Add special termination error code for protected content
This commit is contained in:
parent
9841a6e34d
commit
6dca9c6754
2 changed files with 11 additions and 3 deletions
|
|
@ -817,7 +817,7 @@ static void controlReceiveThreadFunc(void* context) {
|
|||
|
||||
Limelog("Server notified termination reason: 0x%08x\n", terminationErrorCode);
|
||||
|
||||
// Handle NVST_DISCONN_SERVER_TERMINATED_CLOSED specially
|
||||
// NVST_DISCONN_SERVER_TERMINATED_CLOSED is the expected graceful termination error
|
||||
if (terminationErrorCode == 0x80030023) {
|
||||
if (lastSeenFrame != 0) {
|
||||
// Pass error code 0 to notify the client that this was not an error
|
||||
|
|
@ -829,6 +829,10 @@ static void controlReceiveThreadFunc(void* context) {
|
|||
terminationErrorCode = ML_ERROR_UNEXPECTED_EARLY_TERMINATION;
|
||||
}
|
||||
}
|
||||
// NVST_DISCONN_SERVER_VFP_PROTECTED_CONTENT means it failed due to protected content on screen
|
||||
else if (terminationErrorCode == 0x800e9302) {
|
||||
terminationErrorCode = ML_ERROR_PROTECTED_CONTENT;
|
||||
}
|
||||
}
|
||||
else {
|
||||
uint16_t terminationReason;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue