From f05699a005ee922ffc735a93b99eb72e761c2aaa Mon Sep 17 00:00:00 2001 From: manupap1 Date: Fri, 14 Nov 2014 11:17:27 +0100 Subject: [PATCH] Fix a bug when closing RTSP session over TCP --- src/zm_rtsp.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/zm_rtsp.cpp b/src/zm_rtsp.cpp index 384e1c80c..f157f4e4f 100644 --- a/src/zm_rtsp.cpp +++ b/src/zm_rtsp.cpp @@ -768,11 +768,10 @@ int RtspThread::run() if ( !recvResponse( response ) ) return( -1 ); #endif + // Send a teardown message but don't expect a response as this may not be implemented on the server when using TCP message = "TEARDOWN "+mUrl+" RTSP/1.0\r\nSession: "+session+"\r\n"; if ( !sendCommand( message ) ) return( -1 ); - if ( !recvResponse( response ) ) - return( -1 ); delete mSources[ssrc]; mSources.clear();