mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Fix schedule statements used outside event handlers (addresses #974).
This commit is contained in:
parent
9a88dc500a
commit
fa30d4a313
3 changed files with 13 additions and 4 deletions
|
@ -4297,6 +4297,10 @@ Val* ScheduleExpr::Eval(Frame* f) const
|
|||
if ( args )
|
||||
{
|
||||
TimerMgr* tmgr = mgr.CurrentTimerMgr();
|
||||
|
||||
if ( ! tmgr )
|
||||
tmgr = timer_mgr;
|
||||
|
||||
tmgr->Add(new ScheduleTimer(event->Handler(), args, dt, tmgr));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue