mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
Merge pull request #1334 from Bond-009/musicbrainzfix
Iterate over IEnumerable before disposing
This commit is contained in:
commit
4e681d25d9
2 changed files with 2 additions and 2 deletions
|
@ -336,7 +336,7 @@ namespace MediaBrowser.Providers.Music
|
|||
}
|
||||
using (var subReader = reader.ReadSubtree())
|
||||
{
|
||||
return ParseReleaseList(subReader);
|
||||
return ParseReleaseList(subReader).ToList();
|
||||
}
|
||||
}
|
||||
default:
|
||||
|
|
|
@ -110,7 +110,7 @@ namespace MediaBrowser.Providers.Music
|
|||
}
|
||||
using (var subReader = reader.ReadSubtree())
|
||||
{
|
||||
return ParseArtistList(subReader);
|
||||
return ParseArtistList(subReader).ToList();
|
||||
}
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue