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

test

parent 7ef202ce
Loading
Loading
Loading
Loading
+4 −3
Changes for src/event/kqueue.cpp: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -230,10 +230,10 @@ namespace netplus {
                std::lock_guard<std::mutex> global_lock(POLL_HANDLER_MUTEX);

                rcon = reinterpret_cast<con*>(_Events[pos].udata);

                if (!rcon || !rcon->csock) { return; }
            }

            if (!rcon) { return; }

            buffer buf(BLOCKSIZE);

            std::lock_guard<std::mutex> lock_guard(rcon->event_mutex);
@@ -276,9 +276,10 @@ namespace netplus {

                wcon = reinterpret_cast<con*>(_Events[pos].udata);

                if (!wcon || !wcon->csock) { return; }
            }

            if (!wcon) { return; }

            std::lock_guard<std::mutex> lock_guard(wcon->event_mutex);

            try{