From 108e9bd4b5628d2ce93862dd88473ed5b1ad36ab Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 12 Mar 2025 17:16:59 +0800 Subject: session(write): fix newline not being printed before write rn if you write() while there is a read("text") it would output the new write() in the same line which is not ideal. --- src/session.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/session.hpp') diff --git a/src/session.hpp b/src/session.hpp index 82eca9c..3e5bbc1 100644 --- a/src/session.hpp +++ b/src/session.hpp @@ -45,6 +45,8 @@ class CSession { char m_ip[INET_ADDRSTRLEN]; int m_port; + bool m_isReading = false; + void recvLoop(); bool registerSession(); -- cgit v1.2.3