mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
Merge pull request #1334 from Bond-009/musicbrainzfix
Iterate over IEnumerable before disposing
This commit is contained in:
commit
4e681d25d9
@ -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 New Issue
Block a user