Skip to content

Commit

Permalink
Manually re-interrupting the current thread by calling Thread.interru…
Browse files Browse the repository at this point in the history
…pt()
  • Loading branch information
Sharanyu committed Feb 14, 2024
1 parent b6307d8 commit 15d0ad1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public boolean writeTrack(List<Track> tracks, @NonNull OutputStream outputStream
return true;
} catch (InterruptedException | IOException e) {
Log.e(TAG, "Unable to write track", e);
Thread.currentThread().interrupt();
return false;
}
}
Expand Down

0 comments on commit 15d0ad1

Please sign in to comment.