mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-17 08:55:48 +00:00
Fix control flow bugs in poll() error paths
This commit is contained in:
parent
52250b4815
commit
1b642fec73
@ -287,12 +287,12 @@ static bool transactRtspMessageTcp(PRTSP_MESSAGE request, PRTSP_MESSAGE response
|
||||
if (err == 0) {
|
||||
*error = ETIMEDOUT;
|
||||
Limelog("RTSP request timed out\n");
|
||||
goto Exit;
|
||||
}
|
||||
else if (err < 0) {
|
||||
*error = LastSocketError();
|
||||
Limelog("Failed to wait for RTSP response: %d\n", *error);
|
||||
goto Exit;
|
||||
return false;
|
||||
}
|
||||
|
||||
err = recv(sock, &responseBuffer[offset], responseBufferSize - offset, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user