mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix a long-standing bug in the math around continue_processing
This commit is contained in:
parent
adcaa459c9
commit
95b6069c6e
3 changed files with 40 additions and 2 deletions
|
@ -527,12 +527,13 @@ void continue_processing()
|
|||
detail::current_wallclock = util::current_time(true);
|
||||
}
|
||||
|
||||
--_processing_suspended;
|
||||
if ( _processing_suspended > 0 )
|
||||
--_processing_suspended;
|
||||
}
|
||||
|
||||
bool is_processing_suspended()
|
||||
{
|
||||
return _processing_suspended;
|
||||
return _processing_suspended > 0;
|
||||
}
|
||||
|
||||
} // namespace zeek::run_state
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue