Commit 0b77b338 authored by jan.koester's avatar jan.koester
Browse files

test

parent dbb27e0d
Loading
Loading
Loading
Loading
+1 −4
Changes for src/event/kqueue.cpp: 1 added line, 4 removed lines.
Original line number Diff line number Diff line
@@ -393,16 +393,13 @@ void ConnectEventHandler(int pos, const int tid, ULONG_PTR args) {
                    evconnection->DisconnectEvent(*ccon, tid, args);

                    ccon->csock->close();

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

                } catch (NetException &e) {
                    CONNECTIONS.erase(ccon->csock->fd());
                    conn_lock.unlock();
                    throw e;
                }
            }

            CONNECTIONS.erase(ccon->csock->fd());
            _Events[pos].udata  = nullptr;
            conn_lock.unlock();
            delete ccon;