diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-03-12 17:16:59 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-03-20 23:44:59 +0800 |
| commit | 108e9bd4b5628d2ce93862dd88473ed5b1ad36ab (patch) | |
| tree | 013b6d2803b101a15fbedc580ce5731967c00731 /src/session.hpp | |
| parent | 73c9cb4dfaa1da463534862813c3ea3a528a4b03 (diff) | |
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.
Diffstat (limited to 'src/session.hpp')
| -rw-r--r-- | src/session.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |
