diff --git a/Covenant/Core/DbInitializer.cs b/Covenant/Core/DbInitializer.cs index 59783ba5..ba53ba85 100644 --- a/Covenant/Core/DbInitializer.cs +++ b/Covenant/Core/DbInitializer.cs @@ -100,7 +100,14 @@ await service.CreateEntities( foreach (Listener l in listeners) { - await service.StartListener(l.Id); + try { + await service.StartListener(l.Id); + } + catch { + Console.WriteLine("Listener " + l.Id + " failed to start and has been stopped."); + l.Status = ListenerStatus.Stopped; + await service.EditListener(l); + } } }