mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-12-03 11:41:29 +00:00
Terminate with the given error code if the disconnect timeout expires instead of -1
This commit is contained in:
1 parent
25dfbcfd41
commit
c322ed9437
1 file changed
+1
-1
+1
-1
@@ -501,7 +501,7 @@ static void controlReceiveThreadFunc(void* context) {
|
|||||||
// assume the server died tragically, so go ahead and tear down.
|
// assume the server died tragically, so go ahead and tear down.
|
||||||
PltUnlockMutex(&enetMutex);
|
PltUnlockMutex(&enetMutex);
|
||||||
Limelog("Disconnect event timeout expired\n");
|
Limelog("Disconnect event timeout expired\n");
|
||||||
ListenerCallbacks.connectionTerminated(-1);
|
ListenerCallbacks.connectionTerminated(terminationErrorCode);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user