Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit a038764

Browse files
authored
Merge pull request #307 from github/fixes/authentication-hang
Fix application hang during authentication
2 parents b4ee067 + 51ae810 commit a038764

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/GitHub.Api/Authentication/LoginManager.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,13 @@ public async Task<LoginResultData> ContinueLogin(LoginResultData loginResultData
180180
await credentialManager.Delete(host);
181181
return new LoginResultData(LoginResultCodes.Failed, message, host);
182182
}
183+
catch (Exception e)
184+
{
185+
logger.Debug(e, "Exception: {0}", e.Message);
186+
187+
await credentialManager.Delete(host);
188+
return new LoginResultData(LoginResultCodes.Failed, e.Message, host);
189+
}
183190
}
184191

185192
/// <inheritdoc/>

0 commit comments

Comments
 (0)