summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/session.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/session.cpp b/src/session.cpp
index 26dc3f8..5edfa56 100644
--- a/src/session.cpp
+++ b/src/session.cpp
@@ -177,7 +177,7 @@ bool CSession::write(std::format_string<Args...> fmt, Args &&...args) {
if (m_isReading)
msg.insert(0, "\n");
- if (send(m_sockfd.get(), msg.c_str(), msg.size(), 0) < 0) {
+ if (send(m_sockfd.get(), msg.c_str(), msg.size(), MSG_NOSIGNAL) < 0) {
onErrno(WRITE);
return false;
}