Commit 2d638482 authored by jan.koester's avatar jan.koester
Browse files

replace goto against for

parent ef9af60f
Loading
Loading
Loading
Loading
+30 −31
Original line number Diff line number Diff line
@@ -329,7 +329,7 @@ namespace netplus {
        EventWorker(int tid,ULONG_PTR args,EventWorkerArgs* eargs) {
            poll pollptr(eargs->ssocket, eargs->event, eargs->pollfd, eargs->timeout);
            int wait=0;
EVENTLOOP:
            for(;;){
                try {
                    wait=pollptr.waitEventHandler(eargs->timeout);
                    for(int i =0; i<wait; ++i){
@@ -359,11 +359,10 @@ EVENTLOOP:
                            }
                        }
                    }

                }catch (NetException& e) {
                    std::cerr << e.what() << std::endl;
                }
            goto EVENTLOOP;
            }
        }
    };