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

@ -456,8 +456,7 @@ srs_error_t SrsUdpMuxSocket::sendto(void* data, int size, srs_utime_t timeout)
if (nb_write < 0 && errno == ETIME) { 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_TIMEOUT, "sendto timeout %d ms", srsu2msi(timeout));
} }
return srs_error_new(ERROR_SOCKET_WRITE, strerror(errno));
return srs_error_new(ERROR_SOCKET_WRITE, "sendto");
} }
// Yield to another coroutines. // Yield to another coroutines.