Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/brpc/policy/rtmp_protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2714,9 +2714,11 @@ bool RtmpChunkStream::OnCreateStream(const RtmpMessageHeader& mh,
PLOG(WARNING) << socket->remote_side() << '[' << mh.stream_id
<< "] Fail to respond createStream";
// End the stream at server-side.
const bthread_id_t id = stream->_onfail_id;
if (id != INVALID_BTHREAD_ID) {
bthread_id_error(id, 0);
if (stream != nullptr) {
const bthread_id_t id = stream->_onfail_id;
if (id != INVALID_BTHREAD_ID) {
bthread_id_error(id, 0);
}
}
return false;
Comment on lines 2714 to 2723
}
Expand Down
Loading