Fix a bug when closing RTSP session over TCP

This commit is contained in:
manupap1 committed 2014-11-14 11:17:27 +01:00
1 parent 3a9f814303
commit f05699a005
1 file changed
+1 -2
+1 -2
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();