Fix mutex lock issues (OCR and FR)
This commit is contained in:
@@ -99,6 +99,7 @@ namespace ANSCENTER {
|
||||
std::vector<Object> output;
|
||||
output.clear();
|
||||
if (!_licenseValid) {
|
||||
if (_modelLoading.load()) return {};
|
||||
this->_logger.LogError("ANSOVFBFD::RunInference", "Invalid license", __FILE__, __LINE__);
|
||||
return output;
|
||||
}
|
||||
@@ -180,6 +181,7 @@ namespace ANSCENTER {
|
||||
std::vector<Object> output;
|
||||
output.clear();
|
||||
if (!_licenseValid) {
|
||||
if (_modelLoading.load()) return {};
|
||||
this->_logger.LogError("ANSOVFBFD::RunInference", "Invalid license", __FILE__, __LINE__);
|
||||
return output;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user