diff OrthancServer/ServerIndex.cpp @ 744:ec69658b031b

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 20 Mar 2014 10:46:59 +0100
parents 696dbb4fd390
children 67e6400fca03 401a9633e492
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Wed Mar 19 20:41:38 2014 +0100
+++ b/OrthancServer/ServerIndex.cpp	Thu Mar 20 10:46:59 2014 +0100
@@ -255,6 +255,7 @@
 
     try
     {
+      boost::mutex::scoped_lock lock(that->mutex_);
       std::string sleepString = that->db_->GetGlobalProperty(GlobalProperty_FlushSleep);
       sleep = boost::lexical_cast<unsigned int>(sleepString);
     }