Fixing bug which caused processing only one file per torrent.
This commit is contained in:
parent
b4ab04cf5d
commit
5206d77fe7
|
@ -126,7 +126,6 @@ func getFilesForTorrent(pyDb sql.DB, torrent persistence.TorrentMetadata) ([]per
|
|||
for fRows.Next() {
|
||||
var file persistence.File
|
||||
err := fRows.Scan(&file.Path, &file.Size)
|
||||
fRows.Close()
|
||||
if err != nil {
|
||||
return files, err
|
||||
}
|
||||
|
|
Reference in a new issue