Loading src/event/kqueue.cpp +3 −2 Changes for src/event/kqueue.cpp: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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()); } }; Loading Loading @@ -347,6 +346,8 @@ namespace netplus { evconnection->DisconnectEvent(*ccon, tid, args); csock->csock->close(); _Events[pos].udata = nullptr; CONNECTIONS.erase(ccon->csock->fd()); Loading Loading
src/event/kqueue.cpp +3 −2 Changes for src/event/kqueue.cpp: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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()); } }; Loading Loading @@ -347,6 +346,8 @@ namespace netplus { evconnection->DisconnectEvent(*ccon, tid, args); csock->csock->close(); _Events[pos].udata = nullptr; CONNECTIONS.erase(ccon->csock->fd()); Loading