Commit 26ec26ba authored by jan.koester's avatar jan.koester
Browse files

fixed

parent f0f2dc6f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -196,9 +196,8 @@ namespace netplus {

        void ReadEventHandler(int pos,const int tid,void *args) {
            con *rcon = (con*)_Events[pos].data.ptr;
            std::shared_ptr<char[]> buf( new char[BLOCKSIZE], []( char *p ){ delete [] p; });

            try{
                std::shared_ptr<char[]> buf( new char[BLOCKSIZE], []( char *p ){ delete [] p; });
                size_t rcvsize = _ServerSocket->recvData(rcon->csock, buf.get(), BLOCKSIZE);

                rcon->lasteventime = time(nullptr);
@@ -367,6 +366,7 @@ EVENTLOOP:
                    std::cerr << e.what() << std::endl;
                }
            }

            goto EVENTLOOP;
        }
    };