Commit 04d27cbe authored by jan.koester's avatar jan.koester
Browse files

close crtash fixed

parent f2545af5
Loading
Loading
Loading
Loading
+3
Changes for src/event/kqueue.cpp: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

namespace netplus {
    std::atomic<bool> RUNNING(true);
    std::mutex CLOSE_HANDLER_MUTEX;

    void signalHandler(int signum) {
        switch(signum){
@@ -329,6 +330,8 @@ namespace netplus {


        void CloseEventHandler(int pos, const int tid, ULONG_PTR args) {
            std::lock_guard<std::mutex> global_lock(CLOSE_HANDLER_MUTEX);

            con *ccon = (con*)_Events[pos].udata;

            if (!ccon) {