From: Victor Grishchenko Date: Tue, 9 Feb 2010 14:49:07 +0000 (+0100) Subject: more asserts X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=3362fec760c7bb1668225cca69f620cdd8d70eae;p=swift-upb.git more asserts --- diff --git a/sendrecv.cpp b/sendrecv.cpp index 49e9686..a47a3f5 100644 --- a/sendrecv.cpp +++ b/sendrecv.cpp @@ -413,6 +413,7 @@ void Channel::CleanDataOut (bin64_t ackd_pos) { // TODO: isn't it too long? } while (!data_out_.empty() && data_out_.front().bin==bin64_t::NONE) data_out_.pop_front(); + assert(data_out_.empty() || data_out_.front().time!=TINT_NEVER); }