summaryrefslogtreecommitdiff
path: root/src/pso/TTcpSocket.cpp
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-03-06 16:19:36 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-03-06 16:19:36 -0400
commit06d75ece6452a33f11afd7e5ec3dd1f916c8583f (patch)
tree6a3b5d45eee8d64630a647d04a43638ebef91605 /src/pso/TTcpSocket.cpp
parent306a76cb444102bc207ee16e8a65aa9e90bbd37a (diff)
TProtocol: Match both `parse_packet()`, and `run_task()`
Diffstat (limited to 'src/pso/TTcpSocket.cpp')
-rw-r--r--src/pso/TTcpSocket.cpp4
1 files changed, 2 insertions, 2 deletions
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 {