From 597199ed92cc72be5f1536d761ff08e0a221d95d Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 18 Apr 2016 16:29:28 -0400 Subject: [PATCH] Stop trying to disconnect the peer when aborting RTSP handshake. It's unsafe without additional synchronization. --- src/RtspConnection.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/RtspConnection.c b/src/RtspConnection.c index a67ff8f..38e1453 100644 --- a/src/RtspConnection.c +++ b/src/RtspConnection.c @@ -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