Skip to content

Commit

Permalink
tfbuilder: start during initTask
Browse files Browse the repository at this point in the history
  • Loading branch information
ironMann committed Mar 25, 2021
1 parent 52db849 commit ffd407e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/TfBuilder/TfBuilderDevice.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,15 @@ void TfBuilderDevice::InitTask()
IDDLOG("Not sending to DPL.");
}
}
}

void TfBuilderDevice::PreRun()
{
// start the task
if (!start()) {
mShouldExit = true;
}
}

void TfBuilderDevice::PreRun()
{
// update running state
auto& lStatus = mDiscoveryConfig->status();
lStatus.mutable_info()->set_process_state(BasicInfo::RUNNING);
Expand Down Expand Up @@ -251,7 +252,6 @@ bool TfBuilderDevice::ConditionalRun()
// mRunning = false;
return false;
}

// nothing to do here sleep for awhile
std::this_thread::sleep_for(250ms);
return true;
Expand Down

0 comments on commit ffd407e

Please sign in to comment.