aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-07-03 12:41:19 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-07-03 12:41:19 +0200
commit2e8f75172d3928df7f113a7176f4fc275f6ed379 (patch)
tree5f230196d101323d3c6bf51e13ea245482abed7b /contrib
parent7ab73d85a9709d9971298ce4c6125f9f7ce7617e (diff)
downloadODR-AudioEnc-2e8f75172d3928df7f113a7176f4fc275f6ed379.tar.gz
ODR-AudioEnc-2e8f75172d3928df7f113a7176f4fc275f6ed379.tar.bz2
ODR-AudioEnc-2e8f75172d3928df7f113a7176f4fc275f6ed379.zip
Update Socket.cpp
Diffstat (limited to 'contrib')
-rw-r--r--contrib/Socket.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/Socket.cpp b/contrib/Socket.cpp
index d14902e..cd70a8e 100644
--- a/contrib/Socket.cpp
+++ b/contrib/Socket.cpp
@@ -872,6 +872,10 @@ void TCPReceiveServer::process()
if (r < 0) {
throw logic_error("Invalid recv return value");
}
+ else if (r == 0) {
+ sock.close();
+ break;
+ }
else {
buf.resize(r);
m_queue.push(move(buf));