From 5c995442909c4a7cb135088930925b7cfa8bc675 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 2 Jun 2025 22:19:19 +0800 Subject: 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 --- src/session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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::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(); -- cgit v1.2.3