Mercurial > hg > orthanc
diff Core/MultiThreading/BagOfTasksProcessor.cpp @ 2016:0ae26237569a
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 13 Jun 2016 15:26:20 +0200 |
parents | 6ac7f31fc543 |
children | 5b818f677dd6 |
line wrap: on
line diff
--- a/Core/MultiThreading/BagOfTasksProcessor.cpp Mon Jun 13 15:07:53 2016 +0200 +++ b/Core/MultiThreading/BagOfTasksProcessor.cpp Mon Jun 13 15:26:20 2016 +0200 @@ -198,7 +198,7 @@ countBags_(0), continue_(true) { - if (countThreads <= 0) + if (countThreads == 0) { throw OrthancException(ErrorCode_ParameterOutOfRange); }