Merge pull request #11568 from rgroothuijsen/OL-11178

Fix raster source crash bug when using multiple threads
This commit is contained in:
Tim Schaub
2020-09-18 21:44:29 -06:00
committed by GitHub
2 changed files with 18 additions and 1 deletions

View File

@@ -283,7 +283,7 @@ export class Processor extends Disposable {
const offset = i * segmentLength;
const slices = [];
for (let j = 0, jj = buffers.length; j < jj; ++j) {
slices.push(buffers[i].slice(offset, offset + segmentLength));
slices.push(buffers[j].slice(offset, offset + segmentLength));
}
this._workers[i].postMessage(
{