summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/session.cpp4
-rw-r--r--src/sessionManager.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/session.cpp b/src/session.cpp
index ee4c098..05d6873 100644
--- a/src/session.cpp
+++ b/src/session.cpp
@@ -102,8 +102,8 @@ std::unique_ptr<CSession::SRecvData> CSession::read() {
recvData->good = false;
else {
recvData->data.resize(size);
- recvData->good = true;
- }
+ recvData->good = true;
+ }
#ifdef DEBUG
onRecv(*recvData);
diff --git a/src/sessionManager.cpp b/src/sessionManager.cpp
index f019cff..adf3834 100644
--- a/src/sessionManager.cpp
+++ b/src/sessionManager.cpp
@@ -75,8 +75,8 @@ void CSessionManager::kick(CSession *session, const bool &kill, const std::strin
}
void CSessionManager::kick(std::pair<std::jthread, std::shared_ptr<CSession>> *session, const bool &kill, const std::string &reason) {
- if (!reason.empty())
- session->second->write(reason);
+ if (!reason.empty())
+ session->second->write(reason);
auto it = std::ranges::find_if(m_vSessions, [session](const auto &s) { return s.second.get() == session->second.get(); });