Loading src/event/epoll.cpp +5 −3 Changes for src/event/epoll.cpp: 5 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -321,6 +321,10 @@ namespace netplus { con *ccon = reinterpret_cast<con*>(_Events[pos].data.ptr); if (!ccon) { return; } { std::lock_guard<std::mutex> lock(ccon->event_mutex); Loading @@ -341,11 +345,9 @@ namespace netplus { } CONNECTIONS.erase(ccon->csock->fd()); } _Events[pos].data.ptr = nullptr; } _Events[pos].data.ptr = nullptr; delete ccon; } Loading src/event/kqueue.cpp +2 −1 Changes for src/event/kqueue.cpp: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -370,8 +370,9 @@ namespace netplus { } CONNECTIONS.erase(ccon->csock->fd()); } _Events[pos].udata = nullptr; } _Events[pos].udata = nullptr; delete ccon; } Loading Loading
src/event/epoll.cpp +5 −3 Changes for src/event/epoll.cpp: 5 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -321,6 +321,10 @@ namespace netplus { con *ccon = reinterpret_cast<con*>(_Events[pos].data.ptr); if (!ccon) { return; } { std::lock_guard<std::mutex> lock(ccon->event_mutex); Loading @@ -341,11 +345,9 @@ namespace netplus { } CONNECTIONS.erase(ccon->csock->fd()); } _Events[pos].data.ptr = nullptr; } _Events[pos].data.ptr = nullptr; delete ccon; } Loading
src/event/kqueue.cpp +2 −1 Changes for src/event/kqueue.cpp: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -370,8 +370,9 @@ namespace netplus { } CONNECTIONS.erase(ccon->csock->fd()); } _Events[pos].udata = nullptr; } _Events[pos].udata = nullptr; delete ccon; } Loading