Allow connection interruption during the RTSP handshake
This commit is contained in:
parent
bce9f82844
commit
068f7aa9d9
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue