mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-03 14:26:08 +00:00
Improve ENet socket error propagation for better debuggability
This commit is contained in:
@@ -1068,6 +1068,10 @@ static void controlReceiveThreadFunc(void* context) {
|
||||
}
|
||||
|
||||
if (err < 0) {
|
||||
// The error from serviceEnetHost() should be propagated via LastSocketError()
|
||||
LC_ASSERT(err == -1);
|
||||
|
||||
err = LastSocketFail();
|
||||
Limelog("Control stream connection failed: %d\n", err);
|
||||
ListenerCallbacks.connectionTerminated(err);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user