1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Fix #1057, switch to simple handshake. 3.0.28

This commit is contained in:
winlin 2018-02-13 09:05:01 +08:00
parent a2cefe4dbd
commit db6b8cf914
3 changed files with 7 additions and 3 deletions

View file

@ -1876,8 +1876,9 @@ srs_error_t SrsRtmpClient::handshake()
if ((err = simple_hs->handshake_with_server(hs_bytes, io)) != srs_success) {
return srs_error_wrap(err, "simple handshake");
}
} else {
return srs_error_wrap(err, "complex handshake");
}
return srs_error_wrap(err, "complex handshake");
}
srs_freep(hs_bytes);
@ -2272,8 +2273,9 @@ srs_error_t SrsRtmpServer::handshake()
if ((err = simple_hs.handshake_with_client(hs_bytes, io)) != srs_success) {
return srs_error_wrap(err, "simple handshake");
}
} else {
return srs_error_wrap(err, "complex handshake");
}
return srs_error_wrap(err, "complex handshake");
}
srs_freep(hs_bytes);