diff OrthancServer/main.cpp @ 2946:2e751f615e03

new configuration options: DicomModalitiesInDatabase and OrthancPeersInDatabase
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 29 Nov 2018 17:15:29 +0100
parents e292798f9980
children dc18d5804746
line wrap: on
line diff
--- a/OrthancServer/main.cpp	Thu Nov 29 16:35:18 2018 +0100
+++ b/OrthancServer/main.cpp	Thu Nov 29 17:15:29 2018 +0100
@@ -736,7 +736,8 @@
       }
       else
       {
-        LOG(WARNING) << "A SIGHUP signal has been received, but is ignored as the configuration has not changed";
+        LOG(WARNING) << "A SIGHUP signal has been received, but is ignored "
+                     << "as the configuration has not changed on the disk";
         Logging::Flush();
         continue;
       }
@@ -1131,6 +1132,12 @@
 
   {
     ServerContextConfigurator configurator(context, plugins);
+
+    {
+      OrthancConfiguration::WriterLock lock;
+      lock.GetConfiguration().LoadModalitiesAndPeers();
+    }
+
     return ConfigureHttpHandler(context, plugins, loadJobsFromDatabase);
   }
 }