mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 05:57:20 -04:00
Allow shutdown while starting WebHost
This commit is contained in:
parent
1b0e6b871b
commit
520aeb9a8e
1 changed files with 2 additions and 2 deletions
|
@ -195,9 +195,9 @@ namespace Jellyfin.Server
|
|||
|
||||
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.");
|
||||
throw;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue