diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-05-21 23:59:16 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-05-21 23:59:16 +0800 |
| commit | 56ff86b22ae8d327a5ba4728bde476116d971817 (patch) | |
| tree | 2a2bb87f3970d4303fa27166abaddc66792e050c /src/session.hpp | |
| parent | 71cb5a2f07dc98a1ad232c639bf76d0efd9c43d5 (diff) | |
session(write): write then restore reading
Diffstat (limited to 'src/session.hpp')
| -rw-r--r-- | src/session.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/session.hpp b/src/session.hpp index ad2cc24..882c630 100644 --- a/src/session.hpp +++ b/src/session.hpp @@ -5,6 +5,7 @@ #include "format.hpp" #include <memory> #include <netinet/in.h> +#include <optional> #include <string> #include <thread> @@ -62,7 +63,7 @@ class CSession { int m_port; bool m_isAdmin = false; - bool m_isReading = false; + std::optional<std::string> m_szReading = std::nullopt; bool m_bMuted = false; bool m_bDeaf = true; // init as true as we don't want anything during registerSession |
