Commit 8219845a authored by jan.koester's avatar jan.koester
Browse files

otimations

parent edea0df9
Loading
Loading
Loading
Loading
+7 −3
Changes for src/linux/event.cpp: 7 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -355,10 +355,15 @@ namespace netplus {
                                throw excep;
                        }
                    }catch(NetException& e){
                        if(e.getErrorType()!=NetException::Note){
                            pollptr->CloseEventHandler(i);
                        switch(e.getErrorType()){
                            case NetException::Critical:
                                throw e;
                            case NetException::Note:
                                break;
                            default:
                                pollptr->CloseEventHandler(i);
                        }
                        std::cerr << e.what() << std::endl;
                    }
                } catch (NetException& e) {
                    if (e.getErrorType() == NetException::Critical) {
@@ -449,7 +454,6 @@ namespace netplus {
        int wait=-1;
        while (event::_Run) {
            try {

                if(wait<0){
                    for(size_t i = 0; i< thrs; ++i){
                        while(running[i].load()!=-1);