Merge pull request #6582 from Bond-009/shutdown

Allow shutdown while starting WebHost
pull/6584/head
Claus Vium 4 years ago committed by GitHub
commit 9bb222b408
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -195,9 +195,9 @@ namespace Jellyfin.Server
try try
{ {
await webHost.StartAsync().ConfigureAwait(false); await webHost.StartAsync(_tokenSource.Token).ConfigureAwait(false);
} }
catch catch (Exception ex) when (ex is not TaskCanceledException)
{ {
_logger.LogError("Kestrel failed to start! This is most likely due to an invalid address or port bind - correct your bind configuration in network.xml and try again."); _logger.LogError("Kestrel failed to start! This is most likely due to an invalid address or port bind - correct your bind configuration in network.xml and try again.");
throw; throw;

Loading…
Cancel
Save