Skip to content

Commit

Permalink
Fixed not being able to unsubscribe events (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Aug 20, 2023
1 parent 3b63973 commit 747682c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ffmpeg/src/classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ export class FFmpeg {
callback: LogEventCallback | ProgressEventCallback
) {
if (event === "log") {
this.#logEventCallbacks.filter((f) => f !== callback);
this.#logEventCallbacks = this.#logEventCallbacks.filter((f) => f !== callback);
} else if (event === "progress") {
this.#progressEventCallbacks.filter((f) => f !== callback);
this.#progressEventCallbacks = this.#progressEventCallbacks.filter((f) => f !== callback);
}
}

Expand Down

0 comments on commit 747682c

Please sign in to comment.