Commit 5bb37185 authored by jan.koester's avatar jan.koester
Browse files

sended throw if can't send data

parent 676420b1
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -204,9 +204,13 @@ namespace netplus {
            (void*)wcon->getSendData()->getData(),
            wcon->getSendData()->getDataLength(), 0);

        if(sended!=0){
        if(sended>0){
            wcon->resizeSendQueue(sended);
            ResponseEvent(wcon);
        }else{
            NetException exp;
            exp[NetException::Note] << "WriteEvent: no data sended";
            throw exp;
        }
    };