Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

How it was

Manav Rathie39194d9937b
diff --git a/web/apps/photos/src/services/ffmpeg.ts b/web/apps/photos/src/services/ffmpeg.ts
index ce6c9ca46b..1d6191c35d 100644
--- a/web/apps/photos/src/services/ffmpeg.ts
+++ b/web/apps/photos/src/services/ffmpeg.ts
@@ -201,13 +201,11 @@ const ffmpegExec = async (
/** Lazily create a singleton instance of our worker */
class WorkerFactory {
- private _comlinkWorker: ComlinkWorker<typeof DedicatedFFmpegWorker>;
private _instance: Promise<Remote<DedicatedFFmpegWorker>>;
async instance() {
if (!this._instance) {
const comlinkWorker = createComlinkWorker();
- this._comlinkWorker = comlinkWorker;
this._instance = comlinkWorker.remote;
}
return this._instance;