Loading src/event/kqueue.cpp +2 −6 Changes for src/event/kqueue.cpp: 2 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -338,17 +338,13 @@ namespace netplus { { std::lock_guard<std::recursive_mutex> lock(ccon->event_mutex); if (!ccon->csock) { // If csock is already null, we can exit the critical section and delete (if not already deleted). } else { // Remove from poller while protected by the lock if (ccon->csock) { setpollEvents(ccon, 0, EV_DELETE); } _Events[pos].udata = nullptr; } delete ccon; _Events[pos].udata = nullptr; } private: Loading Loading
src/event/kqueue.cpp +2 −6 Changes for src/event/kqueue.cpp: 2 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -338,17 +338,13 @@ namespace netplus { { std::lock_guard<std::recursive_mutex> lock(ccon->event_mutex); if (!ccon->csock) { // If csock is already null, we can exit the critical section and delete (if not already deleted). } else { // Remove from poller while protected by the lock if (ccon->csock) { setpollEvents(ccon, 0, EV_DELETE); } _Events[pos].udata = nullptr; } delete ccon; _Events[pos].udata = nullptr; } private: Loading