Skip to content

Commit aef44b9

Browse files
authored
Merge pull request #27 from awslabs/FB-ExecutorFix
Fix comparison operator in REJECT_IMMEDIATELY mode check
2 parents b1380c6 + 65a8cb6 commit aef44b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws-cpp-sdk-core/source/utils/threading/Executor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ bool PooledThreadExecutor::SubmitToThread(std::function<void()>&& fn)
7272
{
7373
std::lock_guard<std::mutex> locker(m_queueLock);
7474

75-
if (m_overflowPolicy == OverflowPolicy::REJECT_IMMEDIATELY && m_poolSize >= m_tasks.size())
75+
if (m_overflowPolicy == OverflowPolicy::REJECT_IMMEDIATELY && m_tasks.size() >= m_poolSize)
7676
{
7777
return false;
7878
}

0 commit comments

Comments
 (0)