Fixing bug which caused processing only one file per torrent.

This commit is contained in:
Alexey Skobkin 2019-10-12 01:25:54 +03:00
parent b4ab04cf5d
commit 5206d77fe7
No known key found for this signature in database
GPG key ID: 5D5CEF6F221278E7

View file

@ -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
}