diff options
-rw-r--r-- | src/odr-audioenc.cpp | 4 |
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 == "-") { |