Skip to content

Commit

Permalink
Fix for WaitforTask running tasks if pCompletable_ already complete a…
Browse files Browse the repository at this point in the history
…nd not nullptr
  • Loading branch information
dougbinks committed Feb 1, 2022
1 parent 5421573 commit 4528461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TaskScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ void TaskScheduler::WaitforTask( const ICompletable* pCompletable_, enki::Tas
}
SafeCallback( m_Config.profilerCallbacks.waitForTaskCompleteStop, threadNum );
}
else
else if( nullptr == pCompletable_ )
{
for( int priority = 0; priority <= priorityOfLowestToRun_; ++priority )
{
Expand Down

0 comments on commit 4528461

Please sign in to comment.