mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Fix the DTLS bug
This commit is contained in:
parent
d453c6c22e
commit
34e7db5a93
2 changed files with 7 additions and 1 deletions
|
@ -166,6 +166,11 @@ srs_error_t SrsSecurityTransport::on_dtls(char* data, int nb_data)
|
|||
srs_error_t SrsSecurityTransport::on_dtls_handshake_done()
|
||||
{
|
||||
srs_error_t err = srs_success;
|
||||
|
||||
if (handshake_done) {
|
||||
return err;
|
||||
}
|
||||
|
||||
srs_trace("rtc session=%s, DTLS handshake done.", session_->id().c_str());
|
||||
|
||||
handshake_done = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue