[Modify] Polish it

This commit is contained in:
sta 2021-05-17 21:13:38 +09:00
parent d021f1e20a
commit 381f207b91

View File

@ -612,7 +612,9 @@ namespace WebSocketSharp.Net
_userCredFinder
);
if (user == null || !user.Identity.IsAuthenticated) {
var authenticated = user != null && user.Identity.IsAuthenticated;
if (!authenticated) {
context.SendAuthenticationChallenge (schm, realm);
return false;