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

removed goto

parent 45fb6edf
Loading
Loading
Loading
Loading
+0 −3
Changes for src/linux/event.cpp: 0 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -333,15 +333,12 @@ namespace netplus {
                    try{
                        ConnectEventHandler(&ccon);
                        bool free=false;
    SEARCHFREEWORKINGTHREAD:
                        for(size_t ii = 0; ii < thdsamount; ii++){
                            if(!thcon[ii]){
                                thcon[ii]=ccon;
                                free=true;
                            }
                        }
                        if(!free)
                            goto SEARCHFREEWORKINGTHREAD;
                    }catch (NetException& e) {
                        switch (e.getErrorType()) {
                            case NetException::Critical:{