Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added resource recovery on kill
  • Loading branch information
diegoperini committed Jul 19, 2017
commit d34ec86bde32683ab0ed6767c3b08c49a336d803
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ public boolean isFFmpegCommandRunning() {

@Override
public boolean killRunningProcesses() {
return Util.killAsync(ffmpegLoadLibraryAsyncTask) || Util.killAsync(ffmpegExecuteAsyncTask);
boolean status = Util.killAsync(ffmpegLoadLibraryAsyncTask) || Util.killAsync(ffmpegExecuteAsyncTask);
ffmpegExecuteAsyncTask = null;
return status;
}

@Override
Expand Down