mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-12-01 02:05:06 +00:00
Ensure termination error code is propagated properly
This commit is contained in:
1 parent
ad5dd9c940
commit
aa9610847e
5 files changed
+11
-10
No files matched your search
+2
-2
@@ -318,7 +318,7 @@ static void inputSendThreadProc(void* context) {
|
||||
(int) (encryptedSize + sizeof(encryptedLengthPrefix)), 0);
|
||||
if (err <= 0) {
|
||||
Limelog("Input: send() failed: %d\n", (int) LastSocketError());
|
||||
ListenerCallbacks.connectionTerminated(LastSocketError());
|
||||
ListenerCallbacks.connectionTerminated(LastSocketFail());
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -337,7 +337,7 @@ static void inputSendThreadProc(void* context) {
|
||||
(int) (encryptedSize + sizeof(encryptedLengthPrefix)));
|
||||
if (err < 0) {
|
||||
Limelog("Input: sendInputPacketOnControlStream() failed: %d\n", (int) err);
|
||||
ListenerCallbacks.connectionTerminated(LastSocketError());
|
||||
ListenerCallbacks.connectionTerminated(err);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user