TransferListener::cleanup() test

This commit is contained in:
Pavel Kirienko
2014-02-14 15:53:28 +04:00
parent 02cbd60efe
commit d81a96beb2
2 changed files with 57 additions and 6 deletions
@@ -177,12 +177,7 @@ class TransferListener : public TransferListenerBase, Noncopyable
void cleanup(uint64_t ts_monotonic)
{
receivers_.removeWhere(TimedOutReceiverPredicate(ts_monotonic, bufmgr_));
#if UAVCAN_DEBUG
if (receivers_.isEmpty())
{
assert(bufmgr_.isEmpty());
}
#endif
assert(receivers_.isEmpty() ? bufmgr_.isEmpty() : 1);
}
public: