From 133047a4952b746850695ef46434c862724812b3 Mon Sep 17 00:00:00 2001 From: Eric Reed Date: Thu, 14 Mar 2013 12:01:33 -0400 Subject: [PATCH] Be sure to throw if we exhaust retries --- MediaBrowser.Installer/MainWindow.xaml.cs | 2 +- MediaBrowser.Installer/MediaBrowser.Installer.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Installer/MainWindow.xaml.cs b/MediaBrowser.Installer/MainWindow.xaml.cs index 815ad4781..4826c3d22 100644 --- a/MediaBrowser.Installer/MainWindow.xaml.cs +++ b/MediaBrowser.Installer/MainWindow.xaml.cs @@ -359,7 +359,7 @@ namespace MediaBrowser.Installer { return null; } - if (e.Status == WebExceptionStatus.Timeout || e.Status == WebExceptionStatus.ConnectFailure || e.Status == WebExceptionStatus.ProtocolError) + if (retryCount < 3 && (e.Status == WebExceptionStatus.Timeout || e.Status == WebExceptionStatus.ConnectFailure || e.Status == WebExceptionStatus.ProtocolError)) { Thread.Sleep(500); //wait just a sec PrepareTempLocation(); //clear this out diff --git a/MediaBrowser.Installer/MediaBrowser.Installer.csproj b/MediaBrowser.Installer/MediaBrowser.Installer.csproj index 30f6a6523..8f23397cc 100644 --- a/MediaBrowser.Installer/MediaBrowser.Installer.csproj +++ b/MediaBrowser.Installer/MediaBrowser.Installer.csproj @@ -31,7 +31,7 @@ Media Browser Team Media Browser false - 48 + 50 0.1.1.%2a false true