Skip to content

Commit

Permalink
fix the incident trigger for sub-tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
zoujh committed Jun 17, 2022
1 parent 93d4f9a commit f5f4173
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SniperKernel/src/TaskTrigger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "SniperKernel/TaskWatchDog.h"

TaskTrigger::TaskTrigger(ExecUnit* task)
: IIncidentHandler(task->getRoot()),
: IIncidentHandler(task->getParent()),
m_dog(task->Snoopy())
{
regist(task->objName());
Expand Down
4 changes: 3 additions & 1 deletion SniperKernel/src/WhiteBoard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ void WhiteBoard::mark(ExecUnit* task)
if ( task->isRoot() ) {
IncidentMgr::create(*task);
}
s_wbObj.m_list.push_back( new TaskTrigger(task) );
else {
s_wbObj.m_list.push_back( new TaskTrigger(task) );
}
}

void WhiteBoard::clear()
Expand Down

0 comments on commit f5f4173

Please sign in to comment.