mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-17 06:11:03 +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) {
|
static bool transactRtspMessage(PRTSP_MESSAGE request, PRTSP_MESSAGE response, bool expectingPayload, int* error) {
|
||||||
|
if (ConnectionInterrupted) {
|
||||||
|
*error = -1;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (useEnet) {
|
if (useEnet) {
|
||||||
return transactRtspMessageEnet(request, response, expectingPayload, error);
|
return transactRtspMessageEnet(request, response, expectingPayload, error);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user