diff Framework/Loaders/GenericLoadersContext.cpp @ 1242:b9b5d4378874 broker

working of WebAssemblyOracle
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 06 Jan 2020 18:08:05 +0100
parents c471a0aa137b
children af35ec39ebec
line wrap: on
line diff
--- a/Framework/Loaders/GenericLoadersContext.cpp	Mon Dec 30 10:54:26 2019 +0100
+++ b/Framework/Loaders/GenericLoadersContext.cpp	Mon Jan 06 18:08:05 2020 +0100
@@ -171,6 +171,7 @@
                                             uint64_t& processedCommands)
   {
     boost::recursive_mutex::scoped_lock lock(mutex_);
+
     if (scheduler_)
     {
       scheduledCommands = scheduler_->GetTotalScheduled();
@@ -178,8 +179,7 @@
     }
     else
     {
-      scheduledCommands = 0;
-      processedCommands = 0;
+      throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError);
     }
   }
 }