Merge pull request #573 from manupap1/rtsp_fix

Fix a bug when closing RTSP session over TCP
pull/575/head^2
Andrew Bauer 2014-11-14 09:57:19 -06:00
commit f120546f9e
1 changed files with 1 additions and 2 deletions

View File

@ -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();