storage: Don't add empty mmaps to the mmap span
This commit is contained in:
parent
0790516440
commit
9e6cdff175
|
@ -105,7 +105,9 @@ func mMapTorrent(md *metainfo.Info, location string) (mms mmap_span.MMapSpan, er
|
|||
err = fmt.Errorf("file %q: %s", miFile.DisplayPath(md), err)
|
||||
return
|
||||
}
|
||||
mms.Append(mm)
|
||||
if mm != nil {
|
||||
mms.Append(mm)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue