X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=input.cpp;h=a1b71d618f4beeee42a7ec3431a89991901125ad;hp=fd71d4072fa64fbd30eb0d584b9b0f0217f01b2a;hb=0dd17aefa9103f0ad53e19d1ee08771304512886;hpb=62d560b67de3a922bc26ef5c0c2a72a9a09e7905 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);