Add already loaded check to ProcessJobModule

main
Teo Mrnjavac 11 years ago
parent 8d28a2ea5d
commit 1dca92947c

@ -45,10 +45,14 @@ ProcessJobModule::interface() const
void void
ProcessJobModule::loadSelf() ProcessJobModule::loadSelf()
{ {
if ( m_loaded )
return;
Calamares::job_ptr j = Calamares::job_ptr( new ProcessJob( m_command, Calamares::job_ptr j = Calamares::job_ptr( new ProcessJob( m_command,
m_workingPath, m_workingPath,
m_secondsTimeout ) ); m_secondsTimeout ) );
JobQueue::instance()->enqueue( j ); JobQueue::instance()->enqueue( j );
m_loaded = true;
} }

Loading…
Cancel
Save