aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Socket.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-11-18 11:35:28 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-11-18 11:35:28 +0100
commitaf8c94ab9f27920031aa230d6bb7d412281e404f (patch)
treede4f79fc4a7ca82cccb2ee6eeb24e67614cca8d0 /lib/Socket.cpp
parent4719391034f82a030a6e390dc5b0dc6255744503 (diff)
downloadODR-SourceCompanion-af8c94ab9f27920031aa230d6bb7d412281e404f.tar.gz
ODR-SourceCompanion-af8c94ab9f27920031aa230d6bb7d412281e404f.tar.bz2
ODR-SourceCompanion-af8c94ab9f27920031aa230d6bb7d412281e404f.zip
Apply common 23752f6 and e10272e
Diffstat (limited to 'lib/Socket.cpp')
-rw-r--r--lib/Socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Socket.cpp b/lib/Socket.cpp
index 50a12ba..bfbef93 100644
--- a/lib/Socket.cpp
+++ b/lib/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) {