Commit 3940d3a4 authored by jan.koester's avatar jan.koester
Browse files

some fixes

parent 8462266f
Loading
Loading
Loading
Loading
+10 −1
Changes for src/linux/event.cpp: 10 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -342,12 +342,20 @@ namespace netplus {
                        if(!free)
                            goto SEARCHFREEWORKINGTHREAD;
                    }catch (NetException& e) {
                        switch (e.getErrorType()) {
                            case NetException::Critical:{
                                throw e;
                            }
                        }
                        std::cout << e.what() << std::endl;
                        if(ccon){
                            for(size_t ii = 0; ii < thdsamount; ii++){
                            if(ccon && thcon[ii]==ccon){
                                if(thcon[ii]==ccon){
                                    CloseEventHandler(ccon);
                                    thcon[ii]=nullptr;
                                }
                            }
                        }

                    }
                }
@@ -356,6 +364,7 @@ namespace netplus {
                    case NetException::Critical:{
                        std::cerr << e.what() << std::endl;
                        event::_Run=false;
                        break;
                    }
                }
            }