diff --git a/rldp2/RldpConnection.cpp b/rldp2/RldpConnection.cpp index c6f96728..47506178 100644 --- a/rldp2/RldpConnection.cpp +++ b/rldp2/RldpConnection.cpp @@ -170,6 +170,9 @@ td::Timestamp RldpConnection::run(ConnectionCallback &callback) { if (in_flight_count_ > congestion_window_) { bdw_stats_.on_pause(now); } + if (in_flight_count_ == 0) { + bdw_stats_.on_pause(now); + } for (auto &inbound : inbound_transfers_) { alarm_timestamp.relax(run(inbound.first, inbound.second));