Commit 68e3b9b1 authored by jan.koester's avatar jan.koester
Browse files

closeevent now lock all other operations

parent 017950ad
Loading
Loading
Loading
Loading
+1 −1
Changes for src/linux/event.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -206,6 +206,7 @@ namespace netplus {
    };

    void poll::CloseEventHandler(int pos) {
        const std::lock_guard<std::mutex> lock(_StateLock);
        NetException except;
        con* delcon = (con*)_Events[pos].data.ptr;

@@ -296,7 +297,6 @@ namespace netplus {
                            }
                        } catch (NetException& e) {
                            std::cerr << e.what() << std::endl;
                            if(eventptr->trylockCon(i))
                            eventptr->CloseEventHandler(i);
                            if (e.getErrorType() == NetException::Critical) {
                                throw e;