1
0
Fork 0
mirror of https://github.com/openseadragon/openseadragon.git synced 2025-03-30 12:10:12 +03:00

Fixed imageLoaderLimit

Currently jobsInProgress was not incremented after adding a job. So it
has gone into the - range and was like unlimited jobs.
This commit is contained in:
Philip Giuliani 2014-12-19 15:50:19 +01:00
parent c737bad66e
commit b82f5cea76

View file

@ -162,6 +162,7 @@ function completeJob( loader, job, callback ) {
if ( (!loader.jobLimit || loader.jobsInProgress < loader.jobLimit) && loader.jobQueue.length > 0) {
nextJob = loader.jobQueue.shift();
nextJob.start();
loader.jobsInProgress++;
}
callback( job.image );