Skip to content

Commit dfefd50

Browse files
committed
Don't swallow exceptions in AfterInitCallbacks
1 parent 5add506 commit dfefd50

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/ServiceStack/ServiceStackHost.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -647,14 +647,7 @@ public virtual void OnAfterInit()
647647

648648
foreach (var callback in AfterInitCallbacks)
649649
{
650-
try
651-
{
652-
callback(this);
653-
}
654-
catch (Exception ex)
655-
{
656-
OnStartupException(ex);
657-
}
650+
callback(this);
658651
}
659652

660653
ReadyAt = DateTime.UtcNow;

0 commit comments

Comments
 (0)