Commit cc8650f
committed
Stop sticky piece hasher from hashing new pieces after torrent close
Check t.closed in the pieceHasher loop before picking up new pieces.
Without this, the hasher goroutine could start hashing pieces against
already-closed storage after Drop(), causing "file already closed"
warnings visible in BenchmarkAddLargeTorrent.1 parent 1641c45 commit cc8650f
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2784 | 2784 | | |
2785 | 2785 | | |
2786 | 2786 | | |
| 2787 | + | |
| 2788 | + | |
| 2789 | + | |
2787 | 2790 | | |
2788 | 2791 | | |
2789 | 2792 | | |
| |||
0 commit comments