diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-06-02 22:19:19 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-06-02 22:19:19 +0800 |
| commit | 5c995442909c4a7cb135088930925b7cfa8bc675 (patch) | |
| tree | b9f7549bc35587053371e28ca607e62af1d7538b | |
| parent | 35ab6da1aa6b6f02dd4b58740645de505aa1a406 (diff) | |
fix(3c94a88ec7419e9d0c83c99883c4a0b010a97614): logic error in read(bypassDeaf)
previously, m_bDeaf was cached, now it's not and directly read
note: previously, the second deaf check was unncessary
| -rw-r--r-- | src/session.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/session.cpp b/src/session.cpp index 79caede..116c9bc 100644 --- a/src/session.cpp +++ b/src/session.cpp @@ -138,7 +138,7 @@ std::unique_ptr<CSession::SRecvData> CSession::read(const std::string &msg, bool if (bypassDeaf && m_bDeaf) m_bDeaf = false; write(NONEWLINE, "{}", msg); - if (bypassDeaf && m_bDeaf) + if (bypassDeaf && !m_bDeaf) m_bDeaf = true; m_szReading = msg; return read(); |
