X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=src%2Fnntp%2Fnntpconnection.cpp;fp=src%2Fnntp%2Fnntpconnection.cpp;h=84d07ffd98a592eedc2885bbdcd2a0fdfdb173b8;hp=6e53237d3c183b0640406dcdcd7dfb48e7b3dd2c;hb=278ee758050cb7772cd95946688c5b40104f4d8b;hpb=dabd19d7f764b8275c9c8370c7b89675b6a78243 diff --git a/src/nntp/nntpconnection.cpp b/src/nntp/nntpconnection.cpp index 6e53237..84d07ff 100644 --- a/src/nntp/nntpconnection.cpp +++ b/src/nntp/nntpconnection.cpp @@ -1323,6 +1323,14 @@ void NNTPConnection::run() m_log->error("NNTPConnection::run select returned -1 : "+GetSocketErrorMessage()); } + //process all remaining commands in buffer + std::vector::size_type rbs=0; + while(rbs!=m_receivebuffer.size()) + { + rbs=m_receivebuffer.size(); + HandleReceivedData(); + } + }while(!Disconnected() && !IsCancelled()); Disconnect();