Skip to content

Commit

Permalink
automatically delete erroneous torrents
Browse files Browse the repository at this point in the history
  • Loading branch information
arranlomas committed Nov 5, 2017
1 parent 741a3d5 commit 8eed725
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class AllPresenter(val torrentRepository: ITorrentRepository) : BasePresenter<Al
}

override fun refresh() {
torrentRepository.getAllTorrentsFromStorage()
torrentRepository.getAllTorrentsFromStorage(deleteErroneousTorrents = true)
.subscribe(object : BaseSubscriber<List<ParseTorrentResult>>() {
override fun onNext(results: List<ParseTorrentResult>) {
val success = results.filter { it is ParseTorrentResult.Success }
Expand Down

0 comments on commit 8eed725

Please sign in to comment.