This commit is contained in:
Luke Pulverenti 2013-03-28 13:06:40 -04:00
commit d2401579da
2 changed files with 25 additions and 5 deletions

View File

@ -409,14 +409,34 @@ namespace MediaBrowser.Installer
} }
// And extract // And extract
var retryCount = 0;
var success = false;
while (!success && retryCount < 3)
{
try
{
using (var fileStream = File.OpenRead(archive)) using (var fileStream = File.OpenRead(archive))
{ {
using (var zipFile = ZipFile.Read(fileStream)) using (var zipFile = ZipFile.Read(fileStream))
{ {
zipFile.ExtractAll(RootPath, ExtractExistingFileAction.OverwriteSilently); zipFile.ExtractAll(RootPath, ExtractExistingFileAction.OverwriteSilently);
success = true;
}
}
}
catch
{
if (retryCount < 3)
{
Thread.Sleep(250);
retryCount++;
}
else
{
throw;
}
} }
} }
} }
/// <summary> /// <summary>

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>51</ApplicationRevision> <ApplicationRevision>53</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>