From fe6ff1dce07e56115d6442ecaf41b63d711d5efd Mon Sep 17 00:00:00 2001 From: Balder Date: Wed, 13 Mar 2024 16:00:02 +0100 Subject: [PATCH] Fix for HTTPS WHIP --- src/output/output_https.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/output/output_https.cpp b/src/output/output_https.cpp index 2003e3c7..d06d519c 100644 --- a/src/output/output_https.cpp +++ b/src/output/output_https.cpp @@ -140,6 +140,7 @@ namespace Mist{ Util::logExitReason(ER_EXEC_FAILURE, "Could not spawn MistOutHTTP process for SSL connection!"); return 1; } + Util::Procs::forget(http_proc); Socket::Connection http(fd[0]); http.setBlocking(false); Socket::Buffer &http_buf = http.Received(); @@ -189,11 +190,6 @@ namespace Mist{ } // close the HTTP process (close stdio, kill its PID) http.close(); - uint16_t waiting = 0; - while (++waiting < 50){ - if (!Util::Procs::isRunning(http_proc)){break;} - Util::sleep(100); - } return 0; }