Wait on user-defined OnStarting and OnCompleted callbacks
This commit is contained in:
parent
3cc0dd7a25
commit
c199e5eee1
|
|
@ -197,7 +197,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
|||
{
|
||||
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
|
||||
{
|
||||
entry.Key.Invoke(entry.Value);
|
||||
entry.Key.Invoke(entry.Value).Wait();
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue