diff --git a/src/socket.h b/src/socket.h index b9754f87d..a5238a6c0 100644 --- a/src/socket.h +++ b/src/socket.h @@ -273,7 +273,6 @@ class TCPSocket : public Socket{ */ inline ssize_t Send(const void *buf_, size_t len, int flag = 0) { const char *buf = reinterpret_cast(buf_); - if (len == 0) return 0; return send(sockfd, buf, static_cast(len), flag); } /*!