Bring back log message when a piece read fails unexpectedly
This commit is contained in:
parent
9c837a03d0
commit
c6db777ed4
@ -3,6 +3,7 @@ package torrent
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"io"
|
"io"
|
||||||
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
@ -176,7 +177,7 @@ func (r *Reader) readOnceAt(b []byte, pos int64, ctxErr *error) (n int, err erro
|
|||||||
err = nil
|
err = nil
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// log.Printf("%s: error reading from torrent storage pos=%d: %s", r.t, pos, err)
|
log.Printf("%s: error reading from torrent storage pos=%d: %s", r.t, pos, err)
|
||||||
r.t.cl.mu.Lock()
|
r.t.cl.mu.Lock()
|
||||||
r.t.updateAllPieceCompletions()
|
r.t.updateAllPieceCompletions()
|
||||||
r.t.updatePiecePriorities()
|
r.t.updatePiecePriorities()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user