Skip to content

Commit

Permalink
Merge pull request #398 from CortexFoundation/dev
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
ucwong authored Aug 5, 2023
2 parents f2bcd4b + 4c713dc commit 37f7ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/torrent.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ func (t *Torrent) Stop() {
defer t.Torrent.Drop()

if t.Status() != torrentStopping {
log.Info(ProgressBar(t.BytesCompleted(), t.Torrent.Length(), ""), "ih", t.InfoHash(), "total", common.StorageSize(t.Torrent.Length()), "req", common.StorageSize(t.BytesRequested()), "finish", common.StorageSize(t.Torrent.BytesCompleted()), "status", t.Status(), "cited", t.Cited())
log.Debug(ProgressBar(t.BytesCompleted(), t.Torrent.Length(), ""), "ih", t.InfoHash(), "total", common.StorageSize(t.Torrent.Length()), "req", common.StorageSize(t.BytesRequested()), "finish", common.StorageSize(t.Torrent.BytesCompleted()), "status", t.Status(), "cited", t.Cited())
//t.status = torrentStopping
t.status.Store(torrentStopping)
}
Expand Down

0 comments on commit 37f7ceb

Please sign in to comment.