Less spammy log message

This commit is contained in:
Igor Katson 2024-04-26 09:42:44 +01:00
parent 5ffe2d59b7
commit ffc662e370
4 changed files with 13 additions and 9 deletions

View file

@ -710,7 +710,9 @@ impl TorrentStateLive {
self.streams.wake_streams_on_piece_completed(id);
if self.is_finished() {
info!("torrent finished downloading");
if self.lock_read("chunks").get_chunks()?.get_selected_pieces()[id.get_usize()] {
info!("torrent finished downloading");
}
self.finished_notify.notify_waiters();
if !self.has_active_streams_unfinished_files() {