1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00
This commit is contained in:
Arjen10 2025-01-15 19:25:41 +08:00 committed by GitHub
commit 19a58c0f91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.