mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #913, http callback use complex error
This commit is contained in:
parent
59b53dab8b
commit
20a42599f3
22 changed files with 264 additions and 268 deletions
|
@ -82,11 +82,10 @@ void SrsConnection::dispose()
|
|||
|
||||
srs_error_t SrsConnection::start()
|
||||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
srs_error_t err = srs_success;
|
||||
|
||||
if ((ret = skt->initialize(stfd)) != ERROR_SUCCESS) {
|
||||
return srs_error_new(ret, "socket");
|
||||
if ((err = skt->initialize(stfd)) != srs_success) {
|
||||
return srs_error_wrap(err, "init socket");
|
||||
}
|
||||
|
||||
if ((err = trd->start()) != srs_success) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue