Loading src/event/kqueue.cpp +5 −2 Changes for src/event/kqueue.cpp: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -338,12 +338,15 @@ namespace netplus { { std::lock_guard<std::recursive_mutex> lock(ccon->event_mutex); if (ccon->csock) { 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 setpollEvents(ccon, EVFILT_READ | EVFILT_WRITE, EV_DELETE); setpollEvents(ccon, 0, EV_DELETE); } } delete ccon; _Events[pos].udata = nullptr; } Loading Loading
src/event/kqueue.cpp +5 −2 Changes for src/event/kqueue.cpp: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -338,12 +338,15 @@ namespace netplus { { std::lock_guard<std::recursive_mutex> lock(ccon->event_mutex); if (ccon->csock) { 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 setpollEvents(ccon, EVFILT_READ | EVFILT_WRITE, EV_DELETE); setpollEvents(ccon, 0, EV_DELETE); } } delete ccon; _Events[pos].udata = nullptr; } Loading