Skip to content

Commit

Permalink
Refine code.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Aug 31, 2024
1 parent 8dc90e0 commit 5196dcf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion trunk/src/app/srs_app_http_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,9 @@ SrsLiveStream::~SrsLiveStream()
{
srs_freep(req);
srs_freep(security_);
viewers_.clear();

// The live stream should never be destroyed when it's serving any viewers.
srs_assert(viewers_.empty());
}

srs_error_t SrsLiveStream::update_auth(SrsRequest* r)
Expand Down

0 comments on commit 5196dcf

Please sign in to comment.