mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-02-16 02:21:07 +00:00
Allow connection interruption during the RTSP handshake
This commit is contained in:
@@ -298,6 +298,11 @@ Exit:
|
||||
}
|
||||
|
||||
static bool transactRtspMessage(PRTSP_MESSAGE request, PRTSP_MESSAGE response, bool expectingPayload, int* error) {
|
||||
if (ConnectionInterrupted) {
|
||||
*error = -1;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (useEnet) {
|
||||
return transactRtspMessageEnet(request, response, expectingPayload, error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user