X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fupdate_checker.cc;h=98e4078225d36f8619d4d34cd2e2fa3c3f24d639;hb=ed68bfad5c795afb342c5228f3c1dc7770a6d646;hp=8aeca030bf79f8ba4a7a599ebcce4bf1e11bda88;hpb=73654117144c6de0ec4efe39ddc88485df546cc9;p=dcpomatic.git diff --git a/src/lib/update_checker.cc b/src/lib/update_checker.cc index 8aeca030b..98e407822 100644 --- a/src/lib/update_checker.cc +++ b/src/lib/update_checker.cc @@ -62,7 +62,7 @@ UpdateChecker::UpdateChecker () { _curl = curl_easy_init (); - curl_easy_setopt (_curl, CURLOPT_URL, "http://dcpomatic.com/update"); + curl_easy_setopt (_curl, CURLOPT_URL, "https://dcpomatic.com/update"); curl_easy_setopt (_curl, CURLOPT_WRITEFUNCTION, write_callback_wrapper); curl_easy_setopt (_curl, CURLOPT_WRITEDATA, this); curl_easy_setopt (_curl, CURLOPT_TIMEOUT, 20); @@ -75,6 +75,9 @@ void UpdateChecker::start () { _thread = new boost::thread (boost::bind (&UpdateChecker::thread, this)); +#ifdef DCPOMATIC_LINUX + pthread_setname_np (_thread->native_handle(), "update-checker"); +#endif } UpdateChecker::~UpdateChecker () @@ -158,7 +161,7 @@ UpdateChecker::thread () _stable = stable; } - if (version_less_than (dcpomatic_version, test)) { + if (!test.empty() && version_less_than (dcpomatic_version, test)) { _test = test; }