Loading src/linux/event.cpp +7 −2 Changes for src/linux/event.cpp: 7 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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) { Loading Loading
src/linux/event.cpp +7 −2 Changes for src/linux/event.cpp: 7 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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) { Loading