Don't abort the update checker thread when one curl_easy_perform fails.
[dcpomatic.git] / src / lib / update_checker.cc
index 29d41cd922e4ef880ffc88b4ba34a9ffac178471..3bc02b50af7a5116cebfdad1f854912fbfa908ed 100644 (file)
@@ -136,7 +136,7 @@ UpdateChecker::thread ()
                        int r = curl_easy_perform (_curl);
                        if (r != CURLE_OK) {
                                set_state (State::FAILED);
-                               return;
+                               continue;
                        }
 
                        /* Parse the reply */
@@ -193,7 +193,6 @@ UpdateChecker::set_state (State s)
        {
                boost::mutex::scoped_lock lm (_data_mutex);
                _state = s;
-               _emits++;
        }
 
        emit (boost::bind(boost::ref(StateChanged)));