[banshee] If failed to retrieve Last.fm data, try once more to rule out a corrupted cache



commit 92af3908e2b1c854e3e1e0240bdb365820676325
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Mon May 18 11:43:28 2009 -0500

    If failed to retrieve Last.fm data, try once more to rule out a corrupted cache
---
 src/Libraries/Lastfm/Lastfm.Data/LastfmData.cs |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/Libraries/Lastfm/Lastfm.Data/LastfmData.cs b/src/Libraries/Lastfm/Lastfm.Data/LastfmData.cs
index 753d609..a12e0c4 100644
--- a/src/Libraries/Lastfm/Lastfm.Data/LastfmData.cs
+++ b/src/Libraries/Lastfm/Lastfm.Data/LastfmData.cs
@@ -80,7 +80,11 @@ namespace Lastfm.Data
             this.cache_duration = cacheDuration;
             this.xpath = xpath;
 
-            GetData ();
+            try {
+                GetData ();
+            } catch {
+                Refresh ();
+            }
         }
 
         public void Refresh ()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]