Commit 67cf5596 authored by jan.koester's avatar jan.koester
Browse files

test

parent 84c55cc5
Loading
Loading
Loading
Loading
+2 −1
Changes for src/event/kqueue.cpp: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -327,7 +327,6 @@ namespace netplus {


        void CloseEventHandler(int pos, const int tid, ULONG_PTR args) {
            // This global lock is essential for making deletion safe
            std::lock_guard<std::mutex> global_lock(CLOSE_HANDLER_MUTEX);

            con *ccon = (con*)_Events[pos].udata;
@@ -424,6 +423,8 @@ public:
                // Catches critical exceptions re-thrown from inner block or waitEventHandler failure.
                std::cerr << "CRITICAL WORKER ERROR: " << e.what() << std::endl;
                break; // Stop the RUNNING loop, thread terminates
            }catch(std::system_error &e){
                std::cerr << e.what() << std::endl;
            }
        }
    }