Skip to content
Snippets Groups Projects
Commit e8fe8333 authored by g0dil's avatar g0dil
Browse files

PPI: BUGFIX: Fix unthrottling when mixing multiple auto-forwarding routes with native throttling

parent d19bba76
No related branches found
No related tags found
No related merge requests found
......@@ -120,19 +120,12 @@ prefix_ void senf::ppi::connector::PassiveConnector::v_unthrottleEvent()
prefix_ void senf::ppi::connector::PassiveConnector::notifyUnthrottle()
{
if (throttled() && !nativeThrottled_) {
Routes::const_iterator i (routes_.begin());
Routes::const_iterator const i_end (routes_.end());
for (; i != i_end; ++i)
if ((*i)->throttled())
break;
if (i == i_end) {
remoteThrottled_ = false;
emitUnthrottle();
}
}
else
if (std::find_if(routes_.begin(), routes_.end(),
boost::bind(&ForwardingRoute::throttled, _1)) == routes_.end()) {
remoteThrottled_ = false;
if (!nativeThrottled_)
emitUnthrottle();
}
}
///////////////////////////////////////////////////////////////////////////
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment