Refactored a few for EndPointListener.cs
This commit is contained in:
parent
d25abde628
commit
d337911f9c
@ -83,9 +83,9 @@ namespace WebSocketSharp.Net
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Constructors
|
||||
#region Internal Constructors
|
||||
|
||||
public EndPointListener (
|
||||
internal EndPointListener (
|
||||
IPAddress address,
|
||||
int port,
|
||||
bool secure,
|
||||
@ -427,11 +427,11 @@ namespace WebSocketSharp.Net
|
||||
public bool BindContext (HttpListenerContext context)
|
||||
{
|
||||
HttpListenerPrefix pref;
|
||||
var httpl = searchListener (context.Request.Url, out pref);
|
||||
if (httpl == null)
|
||||
var listener = searchListener (context.Request.Url, out pref);
|
||||
if (listener == null)
|
||||
return false;
|
||||
|
||||
context.Listener = httpl;
|
||||
context.Listener = listener;
|
||||
context.Connection.Prefix = pref;
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user