aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2021-11-15 16:16:07 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2021-11-15 16:16:07 +0100
commitab56227709e999fe2d585d861a01185a192d7fff (patch)
treec1d509259fb52d804a6aa4c8b00de63e281c1532
parent30139bac6ddf798cb7529b022112e5b009af2dd9 (diff)
downloadODR-AudioEnc-ab56227709e999fe2d585d861a01185a192d7fff.tar.gz
ODR-AudioEnc-ab56227709e999fe2d585d861a01185a192d7fff.tar.bz2
ODR-AudioEnc-ab56227709e999fe2d585d861a01185a192d7fff.zip
Common ba7f317
-rw-r--r--contrib/Socket.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/Socket.cpp b/contrib/Socket.cpp
index c876f32..7ff6b5e 100644
--- a/contrib/Socket.cpp
+++ b/contrib/Socket.cpp
@@ -936,10 +936,12 @@ void TCPReceiveServer::process()
sock.close();
// TODO replace fprintf
fprintf(stderr, "TCP Receiver restarted after error: %s\n", e.what());
+ m_queue.push(make_shared<TCPReceiveMessageDisconnected>());
}
if (num_timeouts > max_num_timeouts) {
sock.close();
+ m_queue.push(make_shared<TCPReceiveMessageDisconnected>());
}
}
}