mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +00:00
Deprecate EventMgr::QueueEvent() and update usages to Enqueue()
This commit is contained in:
parent
b667c637df
commit
0db484cc7a
14 changed files with 164 additions and 128 deletions
|
@ -960,9 +960,10 @@ IntrusivePtr<Val> EventStmt::Exec(Frame* f, stmt_flow_type& flow) const
|
|||
{
|
||||
RegisterAccess();
|
||||
auto args = eval_list(f, event_expr->Args());
|
||||
auto h = event_expr->Handler();
|
||||
|
||||
if ( args )
|
||||
mgr.QueueUncheckedEvent(event_expr->Handler(), std::move(*args));
|
||||
if ( args && h )
|
||||
mgr.Enqueue(h, std::move(*args));
|
||||
|
||||
flow = FLOW_NEXT;
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue