RTC: Refine comment
This commit is contained in:
parent
66a0143f14
commit
88d4314a3c
|
|
@ -1553,6 +1553,7 @@ srs_error_t SrsRtcConnection::add_publisher(SrsRequest* req, const SrsSdp& remot
|
||||||
}
|
}
|
||||||
|
|
||||||
// When SDP is done, we set the stream to create state, to prevent multiple publisher.
|
// When SDP is done, we set the stream to create state, to prevent multiple publisher.
|
||||||
|
// @note Here, we check the stream again.
|
||||||
if (!source->can_publish()) {
|
if (!source->can_publish()) {
|
||||||
return srs_error_new(ERROR_RTC_SOURCE_BUSY, "stream %s busy", req->get_stream_url().c_str());
|
return srs_error_new(ERROR_RTC_SOURCE_BUSY, "stream %s busy", req->get_stream_url().c_str());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user