mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-24 07:18:22 -04:00
Fix a bug when closing RTSP session over TCP
This commit is contained in:
1 parent
3a9f814303
commit
f05699a005
1 file changed
+1
-2
+1
-2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user