mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 01:15:46 +00:00
Stop trying to disconnect the peer when aborting RTSP handshake. It's unsafe without additional synchronization.
This commit is contained in:
parent
d5e0950ec6
commit
597199ed92
@ -288,9 +288,8 @@ void terminateRtspHandshake(void) {
|
|||||||
shutdownTcpSocket(sock);
|
shutdownTcpSocket(sock);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (peer != NULL) {
|
// FIXME: We should try to interrupt ENet here, but we must
|
||||||
enet_peer_disconnect_now(peer, 0);
|
// be sure to do it safely. We may need to add a new lock for this.
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send RTSP OPTIONS request
|
// Send RTSP OPTIONS request
|
||||||
|
Loading…
x
Reference in New Issue
Block a user