mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
scripts/pkgbuilder.py: fix failure to queue jobs to idle slots due to race
This commit is contained in:
parent
d8e11007fe
commit
50e6f13896
@ -363,8 +363,7 @@ class Builder:
|
|||||||
# Return False once all jobs have been queued, and finished building.
|
# Return False once all jobs have been queued, and finished building.
|
||||||
def queueWork(self):
|
def queueWork(self):
|
||||||
try:
|
try:
|
||||||
for process in self.processes:
|
for i in range(self.generator.activeJobCount(), self.threadcount):
|
||||||
if not process.isActive():
|
|
||||||
job = self.generator.getNextJob()
|
job = self.generator.getNextJob()
|
||||||
|
|
||||||
if self.verbose:
|
if self.verbose:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user