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

test

parent 12af7b35
Loading
Loading
Loading
Loading
+5 −3
Changes for src/event/epoll.cpp: 5 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -321,6 +321,10 @@ namespace netplus {

            con *ccon = reinterpret_cast<con*>(_Events[pos].data.ptr);

            if (!ccon) {
                return;
            }

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

@@ -341,11 +345,9 @@ namespace netplus {
                    }
                    CONNECTIONS.erase(ccon->csock->fd());
                }

                _Events[pos].data.ptr = nullptr;

            }

             _Events[pos].data.ptr = nullptr;
            delete ccon;
        }

+2 −1
Changes for src/event/kqueue.cpp: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -370,8 +370,9 @@ namespace netplus {
                    }
                    CONNECTIONS.erase(ccon->csock->fd());
                }
                _Events[pos].udata  = nullptr;
            }

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