Skip to content

Commit

Permalink
afrender: service initialization check.
Browse files Browse the repository at this point in the history
References #590.
  • Loading branch information
timurhai committed Jan 16, 2024
1 parent f5b6c1b commit 0119c0e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions afanasy/src/render/taskprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@ TaskProcess::TaskProcess( af::TaskExec * i_taskExec, RenderHost * i_render):
af::pathMakePath( m_store_dir);

m_service = new af::Service( m_taskexec, m_store_dir);
if (false == m_service->isInitialized())
{
af::TaskExec::UPFailedToStart;
AF_ERR << "Failed to initialize service: " << m_taskexec->getServiceType();
sendTaskSate();
return;
}

m_parser = new ParserHost( m_service);

m_cmd = m_service->getCommand();
Expand Down

0 comments on commit 0119c0e

Please sign in to comment.