do not read/write/set_len to padding files
This commit is contained in:
parent
32d658e2d9
commit
af7a0ddb4f
2 changed files with 36 additions and 17 deletions
|
|
@ -245,6 +245,9 @@ impl TorrentStateInitializing {
|
|||
.unwrap_or(true)
|
||||
{
|
||||
let now = Instant::now();
|
||||
if fi.attrs.padding {
|
||||
continue;
|
||||
}
|
||||
if let Err(err) = self.files.ensure_file_length(idx, fi.len) {
|
||||
warn!(
|
||||
"Error setting length for file {:?} to {}: {:#?}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue