Skip to content
Snippets Groups Projects
Commit 422675b8 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

parser: Remove tasks stats assertion

This only ever caught false positive
parent 6997c21b
No related branches found
No related tags found
No related merge requests found
......@@ -199,7 +199,14 @@ void Parser::updateStats()
{
if ( m_callback == nullptr )
return;
assert( m_opScheduled >= m_opDone );
if ( m_opScheduled < m_opDone )
{
/* After flushing, a task may still complete while we don't expect it
* anymore. Handling this properly would be racy until we have a way to
* interrupt a task, which we don't for now
*/
m_opDone = m_opScheduled;
}
/*
* We don't want to spam the callback receiver each time we're done parsing
* an item, however we must signal progress when:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment