RTC: Fix udp recvfrom bug
This commit is contained in:
parent
3d34eb33e5
commit
aefd7fccd0
|
|
@ -316,6 +316,9 @@ int SrsUdpMuxSocket::recvfrom(srs_utime_t timeout)
|
|||
{
|
||||
fromlen = sizeof(from);
|
||||
nread = srs_recvfrom(lfd, buf, nb_buf, (sockaddr*)&from, &fromlen, timeout);
|
||||
if (nread <= 0) {
|
||||
return nread;
|
||||
}
|
||||
|
||||
// Reset the fast cache buffer size.
|
||||
cache_buffer_->set_size(nread);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user