Skip to content

Commit

Permalink
zrtp: Remove two minus symbols more to avoid hanging
Browse files Browse the repository at this point in the history
  • Loading branch information
jrsnen committed Jun 11, 2021
1 parent c397118 commit 72fe842
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zrtp/zrtp_receiver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ int uvgrtp::zrtp_msg::receiver::recv_msg(uvgrtp::socket *socket, int timeout, in
#ifdef _WIN32
if ((ret = uvgrtp::poll::blocked_recv(socket, mem_, len_, timeout, &nread)) != RTP_OK) {
if (ret == RTP_INTERRUPTED)
return -ret;
return ret;

log_platform_error("blocked_recv() failed");
return RTP_RECV_ERROR;
Expand All @@ -69,7 +69,7 @@ int uvgrtp::zrtp_msg::receiver::recv_msg(uvgrtp::socket *socket, int timeout, in

if ((ret = socket->recv(mem_, len_, flags, &nread)) != RTP_OK) {
if (ret == RTP_INTERRUPTED)
return -ret;
return ret;

log_platform_error("recv(2) failed");
return RTP_RECV_ERROR;
Expand Down

0 comments on commit 72fe842

Please sign in to comment.