forked from external-repos/squoosh
Loop through Wasm re-init for issue repro
This commit is contained in:
@@ -54,7 +54,12 @@ async function startMainThread() {
|
||||
|
||||
return {
|
||||
optimise,
|
||||
freeWorkers: () => {
|
||||
for (const worker of resolvedWorkers) {
|
||||
worker.terminate();
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export default startMainThread();
|
||||
export default () => startMainThread();
|
||||
|
||||
Reference in New Issue
Block a user