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

test

parent 64a23e06
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
@@ -215,8 +215,7 @@ namespace netplus {
            evconnection ->ConnectEvent(*ccon,tid,args);
            {
                std::lock_guard<std::mutex> clock(ccon->event_mutex),global_lock(POLL_HANDLER_MUTEX);
                CONNECTIONS.emplace(ccon->csock->fd(),ccon.get());
                ccon.release();
                CONNECTIONS.emplace(ccon->csock->fd(),ccon.release());
            }

        };
@@ -347,6 +346,8 @@ namespace netplus {

                        evconnection->DisconnectEvent(*ccon, tid, args);

                        csock->csock->close();

                        _Events[pos].udata  = nullptr;

                        CONNECTIONS.erase(ccon->csock->fd());