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

test

parent 7eb1ebd3
Loading
Loading
Loading
Loading
+3 −2
Changes for src/event/kqueue.cpp: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -335,14 +335,15 @@ namespace netplus {
                return;
            }

            {
                std::lock_guard<std::recursive_mutex> lock(ccon->event_mutex);

            if (!ccon->csock) { return; }

                if (ccon->csock) {
                    // Remove from poller while protected by the lock
                    setpollEvents(ccon, EVFILT_READ | EVFILT_WRITE, EV_DELETE);
                }

            }
            delete ccon;
            _Events[pos].udata = nullptr;
        }