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

close check connection lock

parent 4898fa40
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -199,8 +199,10 @@ DELETEBLOCK:
#ifdef DEBUG
            delsize += size;
#endif
            size -= size;
            size -= curlen;
        }
        if(size!=0)
            goto HAVEDATA;
    }

#ifdef DEBUG
+5 −0
Original line number Diff line number Diff line
@@ -216,6 +216,11 @@ namespace netplus {
            throw except;
        }

        if(!delcon->conlock.try_lock()){
             except[NetException::Note] << "CloseEvent connection in use cannot remove!";
            throw except;
        }

        int ect = epoll_ctl(_pollFD, EPOLL_CTL_DEL,
            delcon->csock->getSocket(), 0);