From 06d75ece6452a33f11afd7e5ec3dd1f916c8583f Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Mon, 6 Mar 2023 16:19:36 -0400 Subject: TProtocol: Match both `parse_packet()`, and `run_task()` --- src/pso/TTcpSocket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pso/TTcpSocket.cpp') diff --git a/src/pso/TTcpSocket.cpp b/src/pso/TTcpSocket.cpp index f105298..e923abb 100644 --- a/src/pso/TTcpSocket.cpp +++ b/src/pso/TTcpSocket.cpp @@ -99,7 +99,7 @@ int TTcpSocket::send(u8 *data, size_t size) { m_send_crypt.encrypt(data, size); } - const s8 flags = sock_flags(); + const s8 flags = is_invalid_packet(); if (flags || !get_link_status()) { return -1; } else { @@ -138,7 +138,7 @@ int TTcpSocket::send(u8 *data, size_t size) { short TTcpSocket::send(u8 *data) { if (sock_fd() != -1) { - const s8 flags = sock_flags(); + const s8 flags = is_invalid_packet(); if (flags || !get_link_status()) { return -1; } else { -- cgit v1.2.3-13-gbd6f