Commit 5496aaad authored by jan.koester's avatar jan.koester
Browse files

small bugfix

parent eda7f797
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -357,8 +357,10 @@ EVENTLOOP:
                                pollptr.WriteEventHandler(i,tid,args);
                                break;
                            default:
                                pollptr.resetEventHandler(i);
                                break;
                                NetException  e;
                                e[NetException::Error] << "EventWorker: Request type not kwon!";
                                pollptr.CloseEventHandler(i,tid,args);
                                throw e;
                        }
                    }catch(NetException& e){
                        switch(e.getErrorType()){
+7 −2
Original line number Diff line number Diff line
@@ -359,8 +359,10 @@ EVENTLOOP:
                                pollptr.WriteEventHandler(i,tid,args);
                                break;
                            default:
                                pollptr.resetEventHandler(i);
                                break;
                                NetException  e;
                                e[NetException::Error] << "EventWorker: Request type not kwon!";
                                pollptr.CloseEventHandler(i,tid,args);
                                throw e;
                        }
                    }catch(NetException& e){
                        switch(e.getErrorType()){
@@ -368,6 +370,9 @@ EVENTLOOP:
                                throw e;
                            case NetException::Note:
                                break;
                            case NetException::Close:
                                pollptr.CloseEventHandler(i,tid,args);
                                break;
                            default:
                                std::cerr << e.what() << std::endl;
                                pollptr.CloseEventHandler(i,tid,args);
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ namespace netplus {
        
        const char* what();
        
        enum Type {Note,Warning,Error,Critical};
        enum Type {Note,Warning,Error,Critical,Close};
        
        NetException& append(const char *src);
        NetException& operator[](int errtype);