aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/Socket.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-11-18 11:35:21 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-11-18 11:35:21 +0100
commite4b4e7c28d4767d29b4348227948e5bd28e13a64 (patch)
treea7ab9067ec08175306920cea863917cb470bc60e /contrib/Socket.cpp
parentbd2711937d9a4d8e8b63db1ccbc8f3633323da6d (diff)
downloadODR-AudioEnc-e4b4e7c28d4767d29b4348227948e5bd28e13a64.tar.gz
ODR-AudioEnc-e4b4e7c28d4767d29b4348227948e5bd28e13a64.tar.bz2
ODR-AudioEnc-e4b4e7c28d4767d29b4348227948e5bd28e13a64.zip
Apply common 23752f6 and e10272e
Diffstat (limited to 'contrib/Socket.cpp')
-rw-r--r--contrib/Socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/Socket.cpp b/contrib/Socket.cpp
index 50a12ba..bfbef93 100644
--- a/contrib/Socket.cpp
+++ b/contrib/Socket.cpp
@@ -650,7 +650,7 @@ ssize_t TCPSocket::recv(void *buffer, size_t length, int flags, int timeout_ms)
std::string errstr(strerror(errno));
throw std::runtime_error("TCP receive with poll() error: " + errstr);
}
- else if (retval > 0 and (fds[0].revents | POLLIN)) {
+ else if (retval > 0 and (fds[0].revents & POLLIN)) {
ssize_t ret = ::recv(m_sock, buffer, length, flags);
if (ret == -1) {
if (errno == ECONNREFUSED) {