summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Ziegler <funtastix@googlemail.com>2011-11-13 18:06:30 +1100
committerFrank Ziegler <funtastix@googlemail.com>2011-11-13 18:06:30 +1100
commita48427e225be246862af752918e1948e0ccb8da4 (patch)
tree169d12121324100ad0c50f5a06a68029c7509dad
parent8c70c537954f497272cfafa58be927a8d8535ff7 (diff)
[LiveRadio] prevent crash in certain scenarios (clicking multiple genres quickly) bgo#662794
-rw-r--r--src/LiveRadio/Banshee.LiveRadio/LiveRadioPlugins/LiveRadioBasePlugin.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LiveRadio/Banshee.LiveRadio/LiveRadioPlugins/LiveRadioBasePlugin.cs b/src/LiveRadio/Banshee.LiveRadio/LiveRadioPlugins/LiveRadioBasePlugin.cs
index b4c2321..9610235 100644
--- a/src/LiveRadio/Banshee.LiveRadio/LiveRadioPlugins/LiveRadioBasePlugin.cs
+++ b/src/LiveRadio/Banshee.LiveRadio/LiveRadioPlugins/LiveRadioBasePlugin.cs
@@ -396,9 +396,9 @@ namespace Banshee.LiveRadio.Plugins
List<DatabaseTrackInfo> result;
try {
if (request_type == LiveRadioRequestType.ByGenre) {
- result = cached_results["Genre:" + query];
+ result = new List<DatabaseTrackInfo> (cached_results["Genre:" + query].ToArray ());
} else {
- result = cached_results[query];
+ result = new List<DatabaseTrackInfo> (cached_results[query].ToArray ());
}
foreach (DatabaseTrackInfo track in result)
result[result.IndexOf (track)] = new DatabaseTrackInfo (track);