Refactored a few for HttpListenerAsyncResult.cs

This commit is contained in:
sta 2015-03-13 17:51:17 +09:00
parent bd70e0b11c
commit 7364805b9e

View File

@ -181,11 +181,11 @@ namespace WebSocketSharp.Net
internal void Complete (HttpListenerContext context, bool syncCompleted) internal void Complete (HttpListenerContext context, bool syncCompleted)
{ {
var listener = context.Listener; var lsnr = context.Listener;
var schm = listener.SelectAuthenticationScheme (context); var schm = lsnr.SelectAuthenticationScheme (context);
if (schm != AuthenticationSchemes.Anonymous && if (schm != AuthenticationSchemes.Anonymous &&
!authenticate (context, schm, listener.Realm, listener.UserCredentialsFinder)) { !authenticate (context, schm, lsnr.Realm, lsnr.UserCredentialsFinder)) {
listener.BeginGetContext (this); lsnr.BeginGetContext (this);
return; return;
} }