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
1 changed files with 2 additions and 3 deletions
|
|
@ -288,9 +288,8 @@ void terminateRtspHandshake(void) {
|
|||
shutdownTcpSocket(sock);
|
||||
}
|
||||
|
||||
if (peer != NULL) {
|
||||
enet_peer_disconnect_now(peer, 0);
|
||||
}
|
||||
// FIXME: We should try to interrupt ENet here, but we must
|
||||
// be sure to do it safely. We may need to add a new lock for this.
|
||||
}
|
||||
|
||||
// Send RTSP OPTIONS request
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue