Skip to content

Commit

Permalink
Fix app crash when removing tracked entry from tracker (#1380)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuong-tran authored Oct 26, 2024
1 parent fc2f339 commit 6de0641
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,11 @@ private data class TrackerRemoveScreen(

fun deleteMangaFromService() {
screenModelScope.launchNonCancellable {
(tracker as DeletableTracker).delete(track)
try {
(tracker as DeletableTracker).delete(track)
} catch (e: Exception) {
logcat(LogPriority.ERROR, e) { "Failed to delete entry from service" }
}
}
}

Expand Down

0 comments on commit 6de0641

Please sign in to comment.