diff --git a/src/stdinreader.cpp b/src/stdinreader.cpp index cdbe6d5cff1..d3ffdd69f93 100644 --- a/src/stdinreader.cpp +++ b/src/stdinreader.cpp @@ -1023,7 +1023,7 @@ int cmdInputThreadFunc(void *) { approve = false; } - if (approve.has_value() || rejectionReason > static_cast(std::numeric_limits::max())) + if (approve.has_value() && rejectionReason < static_cast(std::numeric_limits::max())) { bool approveValue = approve.value(); std::string uniqueJoinIDCopy(uniqueJoinID);