Commit 16e34b23 authored by jan.koester's avatar jan.koester
Browse files

remnoved logical error

parent d3674aa2
Loading
Loading
Loading
Loading
+2 −4
Changes for src/linux/event.cpp: 2 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -218,14 +218,14 @@ namespace netplus {
        NetException except;
        con* delcon = (con*)_Events[pos].data.ptr;

        delcon->conlock.lock();

        if (!delcon) {
            except[NetException::Error] << "CloseEvent connection empty cannot remove!";
            delcon->conlock.unlock();
            throw except;
        }

        delcon->conlock.lock();

        int ect = epoll_ctl(_pollFD, EPOLL_CTL_DEL,
            delcon->csock->getSocket(), 0);

@@ -238,8 +238,6 @@ namespace netplus {
        DisconnectEvent(delcon);
        delete delcon->csock;
        delete delcon;

        delcon->conlock.unlock();
    };

    /*Connection Ready to send Data*/