Skip to content

Commit

Permalink
optimize error code
Browse files Browse the repository at this point in the history
  • Loading branch information
shiwei committed Jun 24, 2021
1 parent e450563 commit 657c6b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions trunk/src/srt/srt_to_rtmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,8 @@ srs_error_t rtmp_client::connect() {
}

if ((err = _rtmp_conn_ptr->publish(SRS_CONSTS_RTMP_PROTOCOL_CHUNK_SIZE)) != srs_success) {
srs_error("rtmp client in srt2rtmp publish fail url:%s", _url.c_str());
close();
return srs_error_wrap(err, "publish error, url:%s", _url.c_str());
return srs_error_wrap(err, "rtmp client in srt2rtmp publish fail url:%s", _url.c_str());
}
_connect_flag = true;
return err;
Expand Down

0 comments on commit 657c6b4

Please sign in to comment.