From 54ddf375842d28157927d7c0dab352964071d5e4 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 6 Nov 2024 22:57:27 -0600 Subject: [PATCH] fix(rtsp): fix RTSP timeout after quitting an app (#3376) * fix(rtsp): fix RTSP timeout after quitting an app * fix(process): ignore failures when terminating the process group --- src/process.cpp | 3 ++- src/rtsp.cpp | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/process.cpp b/src/process.cpp index c6cf48b2e41..26e2c0a3588 100644 --- a/src/process.cpp +++ b/src/process.cpp @@ -87,7 +87,8 @@ namespace proc { // We always call terminate() even if we waited successfully for all processes above. // This ensures the process group state is consistent with the OS in boost. - group.terminate(); + std::error_code ec; + group.terminate(ec); group.detach(); } diff --git a/src/rtsp.cpp b/src/rtsp.cpp index a6abd9c1b60..be739313a63 100644 --- a/src/rtsp.cpp +++ b/src/rtsp.cpp @@ -588,10 +588,6 @@ namespace rtsp_stream { i++; } } - - if (all && !ios.stopped()) { - ios.stop(); - } } /**