diff --git a/src/network_engine.cpp b/src/network_engine.cpp index de2cc1f3..c38a79ae 100644 --- a/src/network_engine.cpp +++ b/src/network_engine.cpp @@ -661,7 +661,7 @@ NetworkEngine::send(const char *buf, size_t len, int flags, const SockAddr& addr if (s < 0) return EAFNOSUPPORT; #ifdef MSG_NOSIGNAL - flags &= MSG_NOSIGNAL; + flags |= MSG_NOSIGNAL; #endif if (sendto(s, buf, len, flags, addr.get(), addr.getLength()) == -1) { int err = errno;