Skip to content

Commit

Permalink
Close stream before calling listener events
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwilliams83 authored and ypresto committed Sep 9, 2016
1 parent 8bbf3ba commit d3ab876
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,20 @@ public void onTranscodeProgress(double progress) {

@Override
public void onTranscodeCompleted() {
listener.onTranscodeCompleted();
closeStream();
listener.onTranscodeCompleted();
}

@Override
public void onTranscodeCanceled() {
listener.onTranscodeCanceled();
closeStream();
listener.onTranscodeCanceled();
}

@Override
public void onTranscodeFailed(Exception exception) {
listener.onTranscodeFailed(exception);
closeStream();
listener.onTranscodeFailed(exception);
}

private void closeStream() {
Expand Down

0 comments on commit d3ab876

Please sign in to comment.