mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Merge 8f67b51d19
into 13597d1b7f
This commit is contained in:
commit
19a58c0f91
1 changed files with 2 additions and 3 deletions
|
@ -455,9 +455,8 @@ srs_error_t SrsUdpMuxSocket::sendto(void* data, int size, srs_utime_t timeout)
|
|||
if (nb_write <= 0) {
|
||||
if (nb_write < 0 && errno == ETIME) {
|
||||
return srs_error_new(ERROR_SOCKET_TIMEOUT, "sendto timeout %d ms", srsu2msi(timeout));
|
||||
}
|
||||
|
||||
return srs_error_new(ERROR_SOCKET_WRITE, "sendto");
|
||||
}
|
||||
return srs_error_new(ERROR_SOCKET_WRITE, strerror(errno));
|
||||
}
|
||||
|
||||
// Yield to another coroutines.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue