changeset 4129:7aa92c87fdc2

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 08 Jul 2020 09:05:55 +0200
parents 27f0eafd40fe
children 4899c3135479
files OrthancServer/Sources/ServerContext.cpp
diffstat 1 files changed, 21 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.cpp	Tue Jul 07 20:31:54 2020 +0200
+++ b/OrthancServer/Sources/ServerContext.cpp	Wed Jul 08 09:05:55 2020 +0200
@@ -142,7 +142,13 @@
   {
     haveJobsChanged_ = true;
     mainLua_.SignalJobSubmitted(jobId);
-    plugins_->SignalJobSubmitted(jobId);
+
+#if ORTHANC_ENABLE_PLUGINS == 1
+    if (HasPlugins())
+    {
+      GetPlugins().SignalJobSubmitted(jobId);
+    }
+#endif
   }
   
 
@@ -150,7 +156,13 @@
   {
     haveJobsChanged_ = true;
     mainLua_.SignalJobSuccess(jobId);
-    plugins_->SignalJobSuccess(jobId);
+
+#if ORTHANC_ENABLE_PLUGINS == 1
+    if (HasPlugins())
+    {
+      GetPlugins().SignalJobSuccess(jobId);
+    }
+#endif
   }
 
   
@@ -158,7 +170,13 @@
   {
     haveJobsChanged_ = true;
     mainLua_.SignalJobFailure(jobId);
-    plugins_->SignalJobFailure(jobId);
+
+#if ORTHANC_ENABLE_PLUGINS == 1
+    if (HasPlugins())
+    {
+      GetPlugins().SignalJobFailure(jobId);
+    }
+#endif
   }