Skip to content

Commit

Permalink
Notify TransformationListener before releasing TransformationJob (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
simekadam authored Jun 28, 2022
1 parent 1228e2d commit 7e65a80
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ void transform() throws MediaTransformationException {

@VisibleForTesting
void cancel() {
release(false);
marshallingTransformationListener.onCancelled(jobId, statsCollector.getStats());
release(false);
}

@VisibleForTesting
protected void error(@Nullable Throwable cause) {
release(false);
marshallingTransformationListener.onError(jobId, cause, statsCollector.getStats());
release(false);
}

@VisibleForTesting
Expand Down

0 comments on commit 7e65a80

Please sign in to comment.