Wait on user-defined OnStarting and OnCompleted callbacks

This commit is contained in:
Stephen Halter 2015-07-17 13:07:30 -07:00
parent 3cc0dd7a25
commit c199e5eee1
1 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
{ {
foreach (var entry in onStarting) foreach (var entry in onStarting)
{ {
entry.Key.Invoke(entry.Value); entry.Key.Invoke(entry.Value).Wait();
} }
} }
} }
@ -216,7 +216,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
{ {
try try
{ {
entry.Key.Invoke(entry.Value); entry.Key.Invoke(entry.Value).Wait();
} }
catch catch
{ {