From 00b404f13277eb93b41e34bafe15a8a7f9d49d41 Mon Sep 17 00:00:00 2001 From: Joshua Scott Date: Wed, 11 Apr 2018 02:55:01 +0100 Subject: [PATCH] net: Fix usages of send_packet --- src/protocol/net/Session.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/protocol/net/Session.cpp b/src/protocol/net/Session.cpp index 9e5e77b..1cfa814 100644 --- a/src/protocol/net/Session.cpp +++ b/src/protocol/net/Session.cpp @@ -90,8 +90,7 @@ namespace net // Send a SERVER_HELLO packet to the client const control::ServerHello hello(m_id, timestamp, milliseconds); - send_packet( - true, control::Opcode::SERVER_HELLO, hello); + send_packet(true, control::Opcode::SERVER_HELLO, hello); } } @@ -176,8 +175,7 @@ namespace net // Send a CLIENT_HELLO packet to the server const control::ClientHello hello(m_id, timestamp, milliseconds); - send_packet( - true, control::Opcode::CLIENT_HELLO, hello); + send_packet(true, control::Opcode::CLIENT_HELLO, hello); } catch (parse_error &e) { @@ -232,8 +230,7 @@ namespace net } // Send the response - send_packet( - true, control::Opcode::PING_RSP, ping); + send_packet(true, control::Opcode::PING_RSP, ping); } catch (parse_error &e) {