summaryrefslogtreecommitdiff
path: root/src/lib/update_checker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/update_checker.cc')
-rw-r--r--src/lib/update_checker.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/lib/update_checker.cc b/src/lib/update_checker.cc
index 82337f920..0fad330fd 100644
--- a/src/lib/update_checker.cc
+++ b/src/lib/update_checker.cc
@@ -81,19 +81,17 @@ UpdateChecker::start ()
UpdateChecker::~UpdateChecker ()
{
+ boost::this_thread::disable_interruption dis;
+
{
boost::mutex::scoped_lock lm (_process_mutex);
_terminate = true;
}
_condition.notify_all ();
- if (_thread.joinable()) {
- try {
- _thread.join ();
- } catch (...) {
-
- }
- }
+ try {
+ _thread.join ();
+ } catch (...) {}
curl_easy_cleanup (_curl);
delete[] _buffer;