diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-07-20 18:14:51 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-07-20 18:14:51 +0200 |
commit | 0887d7e859605fad9617681695e70e3ef738a19c (patch) | |
tree | 0ac353c86a5315f2af18dd0d86fde6c51907b5c8 /src/EtiReader.cpp | |
parent | 595606ca4ed3011af19c6d8a9f95519d84320120 (diff) | |
download | dabmod-0887d7e859605fad9617681695e70e3ef738a19c.tar.gz dabmod-0887d7e859605fad9617681695e70e3ef738a19c.tar.bz2 dabmod-0887d7e859605fad9617681695e70e3ef738a19c.zip |
Add main loop RC metrics
Diffstat (limited to 'src/EtiReader.cpp')
-rw-r--r-- | src/EtiReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/EtiReader.cpp b/src/EtiReader.cpp index e992e62..580088b 100644 --- a/src/EtiReader.cpp +++ b/src/EtiReader.cpp @@ -646,7 +646,7 @@ bool EdiTransport::rxPacket() const int timeout_ms = 1000; try { ssize_t ret = m_tcpclient.recv(m_tcpbuffer.data(), m_tcpbuffer.size(), 0, timeout_ms); - if (ret == 0 or ret == -1) { + if (ret <= 0) { return false; } else if (ret > (ssize_t)m_tcpbuffer.size()) { |