Commit 47bb7c26 authored by jan.koester's avatar jan.koester
Browse files

state lock protection

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

    int poll::pollState(int pos){
        const std::lock_guard<std::mutex> lock(_StateLock);
        NetException exception;
        con* ccon = (con*)_Events[pos].data.ptr;
        if (!ccon) {