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

test

parent 669b92ea
Loading
Loading
Loading
Loading
+2 −6
Changes for src/event/kqueue.cpp: 2 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -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: