mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-11-30 01:34:05 +00:00
Terminate the connection if video isn't received for 10 seconds
This commit is contained in:
1 parent
413ea9bc8e
commit
b46e06fcf1
3 files changed
+24
-1
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user