Do not print error if blocked_recv() timeouts

This commit is contained in:
Aaro Altonen 2020-10-10 03:01:44 +03:00
parent 3541212cc1
commit 56ef10e88b
1 changed files with 4 additions and 1 deletions

View File

@ -45,8 +45,11 @@ int uvg_rtp::zrtp_msg::receiver::recv_msg(uvg_rtp::socket *socket, int timeout,
#ifdef _WIN32
if ((ret = uvg_rtp::poll::blocked_recv(socket, mem_, len_, timeout, &nread)) != RTP_OK) {
if (ret == RTP_INTERRUPTED)
return -ret;
log_platform_error("blocked_recv() failed");
return ret;
return -RTP_RECV_ERROR;
}
#else
size_t msec = timeout % 1000;