changeset 744:ec69658b031b

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 20 Mar 2014 10:46:59 +0100
parents fd36c80f096f
children 9076a986c451
files OrthancServer/ServerIndex.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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);
     }