Terminate the connection if video isn't received for 10 seconds

This commit is contained in:
Cameron Gutman
2020-05-01 19:25:24 -07:00
parent 413ea9bc8e
commit b46e06fcf1
3 changed files with 24 additions and 1 deletions

View File

@@ -564,7 +564,7 @@ static void controlReceiveThreadFunc(void* context) {
// SERVER_TERMINATED_INTENDED
if (terminationReason == 0x0100) {
// Pass error code 0 to notify the client that this was not an error
terminationErrorCode = 0;
terminationErrorCode = ML_ERROR_GRACEFUL_TERMINATION;
}
else {
// Otherwise pass the reason unmodified