Replaced the HttpListenerWebSocketContext (HttpListenerContext, string, Logger) constructor with the HttpListenerWebSocketContext (HttpListenerContext, string) constructor

master
sta 11 years ago
parent 4bcd400635
commit 01770d043d

@ -199,7 +199,7 @@ namespace WebSocketSharp.Net
throw new ArgumentException ("Contains an invalid character.", "protocol"); throw new ArgumentException ("Contains an invalid character.", "protocol");
} }
return new HttpListenerWebSocketContext (this, protocol, _listener.Log); return new HttpListenerWebSocketContext (this, protocol);
} }
#endregion #endregion

@ -49,11 +49,10 @@ namespace WebSocketSharp.Net.WebSockets
#region Internal Constructors #region Internal Constructors
internal HttpListenerWebSocketContext ( internal HttpListenerWebSocketContext (HttpListenerContext context, string protocol)
HttpListenerContext context, string protocol, Logger logger)
{ {
_context = context; _context = context;
_websocket = new WebSocket (this, protocol, logger); _websocket = new WebSocket (this, protocol, context.Listener.Log);
} }
#endregion #endregion

Loading…
Cancel
Save