diff --git a/iowrapper.cpp b/iowrapper.cpp index 8551967..6412a76 100644 --- a/iowrapper.cpp +++ b/iowrapper.cpp @@ -999,7 +999,7 @@ ssize_t IoWrapper::writeWebsocketAndOrSsl(int fd, const void *buf, size_t nbytes if (n > 0) websocketWriteRemainder.advanceTail(n); - if (n < 0) + else break; }