From 07b4028a75a6ad79258ee82c56c7e20496c72244 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 20 Mar 2025 21:23:55 +0800 Subject: session(SRecvData): use false as default so if something was wrong(the function directly returned or smth, it'd be good = false) --- src/session.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/session.hpp') diff --git a/src/session.hpp b/src/session.hpp index b9c1cc1..c4525bd 100644 --- a/src/session.hpp +++ b/src/session.hpp @@ -15,7 +15,7 @@ class CSession { struct SRecvData { std::string data; const size_t size = 1024; - bool good = true; + bool good = false; bool isEmpty() const; void sanitize(); -- cgit v1.2.3