Commit b81e5d5a authored by jan.koester's avatar jan.koester
Browse files

no error if connection succesed

parent b3700554
Loading
Loading
Loading
Loading
+2 −2
Changes for src/linux/event.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -160,7 +160,7 @@ namespace netplus {
        try {
            char buf[BLOCKSIZE];
            ssize_t rcvsize = _ServerSocket->recvData(rcon->csock, buf, BLOCKSIZE);
            if (rcvsize <= 0) {
            if (rcvsize < 0) {
                NetException exp;
                exp[NetException::Error] << "ReadEvent: recvData failed at pos: " << pos;
                throw exp;
@@ -186,7 +186,7 @@ namespace netplus {
                (void*)wcon->getSendData()->getData(),
                wcon->getSendData()->getDataLength(), 0);

            if (sended <= 0) {
            if (sended < 0) {
                NetException exp;
                exp[NetException::Error] << "WriteEvent: sendData failed at pos: " << pos;
                throw exp;