Be sure to throw if we exhaust retries

This commit is contained in:
Eric Reed 2013-03-14 12:01:33 -04:00
parent 90ec0f1f9d
commit 133047a495
2 changed files with 2 additions and 2 deletions

View File

@ -359,7 +359,7 @@ namespace MediaBrowser.Installer
{ {
return null; 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 Thread.Sleep(500); //wait just a sec
PrepareTempLocation(); //clear this out PrepareTempLocation(); //clear this out

View File

@ -31,7 +31,7 @@
<PublisherName>Media Browser Team</PublisherName> <PublisherName>Media Browser Team</PublisherName>
<SuiteName>Media Browser</SuiteName> <SuiteName>Media Browser</SuiteName>
<OpenBrowserOnPublish>false</OpenBrowserOnPublish> <OpenBrowserOnPublish>false</OpenBrowserOnPublish>
<ApplicationRevision>48</ApplicationRevision> <ApplicationRevision>50</ApplicationRevision>
<ApplicationVersion>0.1.1.%2a</ApplicationVersion> <ApplicationVersion>0.1.1.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust> <UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted> <PublishWizardCompleted>true</PublishWizardCompleted>