HaikuDepot: Always init the thread ids...

... also in case creating the semaphores fails.
This commit is contained in:
Stephan Aßmus 2015-01-10 23:19:25 +01:00
parent 05bffa62e6
commit 09f8290534

View File

@ -611,7 +611,8 @@ MainWindow::_InitWorkerThreads()
"Planet Express", B_NORMAL_PRIORITY, this);
if (fPendingActionsWorker >= 0)
resume_thread(fPendingActionsWorker);
}
} else
fPendingActionsWorker = -1;
fPackageToPopulateSem = create_sem(0, "PopulatePackage");
if (fPackageToPopulateSem >= 0) {
@ -619,7 +620,8 @@ MainWindow::_InitWorkerThreads()
"Package Populator", B_NORMAL_PRIORITY, this);
if (fPopulatePackageWorker >= 0)
resume_thread(fPopulatePackageWorker);
}
} else
fPopulatePackageWorker = -1;
}