From 0dd17aefa9103f0ad53e19d1ee08771304512886 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 7 Apr 2013 00:51:43 +0200 Subject: [PATCH] Make Input honor should_stop even when it is not connected to an encoder. --- input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input.cpp b/input.cpp index fd71d40..a1b71d6 100644 --- a/input.cpp +++ b/input.cpp @@ -62,7 +62,7 @@ void Input::do_work() { CURL *curl = curl_easy_init(); - for ( ;; ) { + while (!should_stop) { curl_easy_setopt(curl, CURLOPT_URL, url.c_str()); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &Input::curl_callback_thunk); curl_easy_setopt(curl, CURLOPT_WRITEDATA, this); -- 2.39.2