mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 01:15:46 +00:00
Terminate with the given error code if the disconnect timeout expires instead of -1
This commit is contained in:
parent
25dfbcfd41
commit
c322ed9437
@ -501,7 +501,7 @@ static void controlReceiveThreadFunc(void* context) {
|
||||
// assume the server died tragically, so go ahead and tear down.
|
||||
PltUnlockMutex(&enetMutex);
|
||||
Limelog("Disconnect event timeout expired\n");
|
||||
ListenerCallbacks.connectionTerminated(-1);
|
||||
ListenerCallbacks.connectionTerminated(terminationErrorCode);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user