mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-16 02:29:50 +00:00
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