[Modify] Polish it

This commit is contained in:
sta 2017-12-02 15:40:38 +09:00
parent 7de8f735df
commit 0e77f996a7

View File

@ -857,14 +857,13 @@ namespace WebSocketSharp
// As server // As server
private bool acceptHandshake () private bool acceptHandshake ()
{ {
var msg = String.Format ( _logger.Debug (
"A handshake request from {0}:\n{1}", String.Format (
_context.UserEndPoint, "A handshake request from {0}:\n{1}", _context.UserEndPoint, _context
_context )
); );
_logger.Debug (msg); string msg;
if (!checkHandshakeRequest (_context, out msg)) { if (!checkHandshakeRequest (_context, out msg)) {
_logger.Error (msg); _logger.Error (msg);