diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index 907a8111..4d1e7a5c 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -857,14 +857,13 @@ namespace WebSocketSharp // As server private bool acceptHandshake () { - var msg = String.Format ( - "A handshake request from {0}:\n{1}", - _context.UserEndPoint, - _context - ); - - _logger.Debug (msg); + _logger.Debug ( + String.Format ( + "A handshake request from {0}:\n{1}", _context.UserEndPoint, _context + ) + ); + string msg; if (!checkHandshakeRequest (_context, out msg)) { _logger.Error (msg);