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

new api

parent 639a3214
Loading
Loading
Loading
Loading
+7 −2
Changes for src/linux/event.cpp: 7 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -318,11 +318,16 @@ namespace netplus {
        void TimeoutEventHandler(int pos){
             con *tcon = (con*)_Events[pos].data.ptr;

             if(tcon){
            if( !tcon || !tcon->lock())
                return;

            if(time(nullptr) - tcon->lasteventime > _Timeout ){
                tcon->unlock();
                CloseEventHandler(pos);
                return;
            }
             }

            tcon->unlock();
        }

        void setpollEvents(con* curcon, int events) {