This commit is contained in:
Hao Kung 2015-06-25 19:27:06 -07:00
parent 3a8ea672ea
commit 1ae4c24a5f
1 changed files with 8 additions and 2 deletions

View File

@ -114,8 +114,14 @@ namespace Microsoft.AspNet.Authentication
/// <returns>async completion</returns> /// <returns>async completion</returns>
internal async Task TeardownAsync() internal async Task TeardownAsync()
{ {
await FinishResponseOnce(); try
UnregisterAuthenticationHandler(); {
await FinishResponseOnce();
}
finally
{
UnregisterAuthenticationHandler();
}
} }
/// <summary> /// <summary>