mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
This commit is contained in:
commit
d2401579da
2 changed files with 25 additions and 5 deletions
|
@ -409,14 +409,34 @@ namespace MediaBrowser.Installer
|
|||
}
|
||||
|
||||
// And extract
|
||||
using (var fileStream = File.OpenRead(archive))
|
||||
var retryCount = 0;
|
||||
var success = false;
|
||||
while (!success && retryCount < 3)
|
||||
{
|
||||
using (var zipFile = ZipFile.Read(fileStream))
|
||||
try
|
||||
{
|
||||
zipFile.ExtractAll(RootPath, ExtractExistingFileAction.OverwriteSilently);
|
||||
using (var fileStream = File.OpenRead(archive))
|
||||
{
|
||||
using (var zipFile = ZipFile.Read(fileStream))
|
||||
{
|
||||
zipFile.ExtractAll(RootPath, ExtractExistingFileAction.OverwriteSilently);
|
||||
success = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
if (retryCount < 3)
|
||||
{
|
||||
Thread.Sleep(250);
|
||||
retryCount++;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
<PublisherName>Media Browser Team</PublisherName>
|
||||
<SuiteName>Media Browser</SuiteName>
|
||||
<OpenBrowserOnPublish>false</OpenBrowserOnPublish>
|
||||
<ApplicationRevision>51</ApplicationRevision>
|
||||
<ApplicationRevision>53</ApplicationRevision>
|
||||
<ApplicationVersion>0.1.1.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||
|
|
Loading…
Reference in a new issue