summaryrefslogtreecommitdiffstats
path: root/src/odr-audioenc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/odr-audioenc.cpp')
-rw-r--r--src/odr-audioenc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/odr-audioenc.cpp b/src/odr-audioenc.cpp
index 3b42dfd..9f88a4b 100644
--- a/src/odr-audioenc.cpp
+++ b/src/odr-audioenc.cpp
@@ -764,6 +764,10 @@ int main(int argc, char *argv[])
zmq::context_t zmq_ctx;
zmq::socket_t zmq_sock(zmq_ctx, ZMQ_PUB);
+ // Do not wait at teardown to send all data out
+ int linger = 0;
+ zmq_sock.setsockopt(ZMQ_LINGER, &linger, sizeof(linger));
+
if (not output_uris.empty()) {
for (auto uri : output_uris) {
if (uri == "-") {