diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pso/TTcpSocket.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pso/TTcpSocket.cpp b/src/pso/TTcpSocket.cpp index e923abb..beb5565 100644 --- a/src/pso/TTcpSocket.cpp +++ b/src/pso/TTcpSocket.cpp @@ -99,8 +99,7 @@ int TTcpSocket::send(u8 *data, size_t size) { m_send_crypt.encrypt(data, size); } - const s8 flags = is_invalid_packet(); - if (flags || !get_link_status()) { + if (is_invalid_packet() || !get_link_status()) { return -1; } else { if (int status = stat()) { @@ -138,8 +137,7 @@ int TTcpSocket::send(u8 *data, size_t size) { short TTcpSocket::send(u8 *data) { if (sock_fd() != -1) { - const s8 flags = is_invalid_packet(); - if (flags || !get_link_status()) { + if (is_invalid_packet() || !get_link_status()) { return -1; } else { if (short status = stat()) { |