Fix bug, should return error when wrapped
This commit is contained in:
parent
7c9b31815f
commit
307a4315f1
|
|
@ -229,13 +229,12 @@ srs_error_t SrtServerAdapter::run()
|
|||
srs_trace("srt server listen port:%d", srt_port);
|
||||
err = srt2rtmp::get_instance()->init();
|
||||
if (err != srs_success) {
|
||||
srs_error_wrap(err, "srt start srt2rtmp error");
|
||||
return err;
|
||||
return srs_error_wrap(err, "srt start srt2rtmp error");
|
||||
}
|
||||
|
||||
srt_ptr = std::make_shared<srt_server>(srt_port);
|
||||
if (!srt_ptr) {
|
||||
srs_error_wrap(err, "srt listen %d", srt_port);
|
||||
return srs_error_wrap(err, "srt listen %d", srt_port);
|
||||
}
|
||||
} else {
|
||||
srs_trace("srt server is disabled...");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user