Mercurial > hg > orthanc
diff OrthancServer/Sources/ServerContext.cpp @ 4129:7aa92c87fdc2
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 08 Jul 2020 09:05:55 +0200 |
parents | 9214e3a7b0a2 |
children | 0ddc5297a8ab |
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 }