Commit 68f2a53e authored by jan.koester's avatar jan.koester
Browse files

wait for con

parent 5df0477a
Loading
Loading
Loading
Loading
+4 −1
Changes for src/linux/event.cpp: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -132,7 +132,8 @@ namespace netplus {
                ccon->conlock.unlock();
                return EventHandlerStatus::EVIN;
            }else{
                _trylockCon(ccon);
                if(!_trylockCon(ccon))
                    return EventHandlerStatus::EVWAIT;
                if (ccon->getSendData()) {
                    _unlockCon(ccon);
                    return EventHandlerStatus::EVOUT;
@@ -298,6 +299,8 @@ namespace netplus {
                                case poll::EVOUT:
                                    eventptr->WriteEventHandler(i);
                                    break;
                                case poll::EVWAIT:
                                    break;
                                default:
                                    eventptr->CloseEventHandler(i);
                                    break;