Commit 64a23e06 authored by jan.koester's avatar jan.koester
Browse files

fixed

parent ad6657d8
Loading
Loading
Loading
Loading
+2 −3
Changes for src/event/kqueue.cpp: 2 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -199,8 +199,7 @@ namespace netplus {

            struct kevent setevent {};
            setevent.udata = ccon.get();
            {
                std::lock_guard<std::mutex> clock(ccon->event_mutex),global_lock(POLL_HANDLER_MUTEX);


            EV_SET(&setevent, ccon->csock->fd(), EVFILT_READ, EV_ADD | EV_ONESHOT,0,0,ccon.get());

@@ -219,7 +218,7 @@ namespace netplus {
                CONNECTIONS.emplace(ccon->csock->fd(),ccon.get());
                ccon.release();
            }
            }

        };

        void ReadEventHandler(int pos,const int tid,ULONG_PTR args) {