X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FConnectors.cc;h=058a85c1d0b57265a5939a5124f0cd9f7ae2a254;hb=44c966bc9d744d0926cffd5184fdb77a62564c16;hp=7fe75a0deadcdb886f2c2d92c77128c07f149478;hpb=f539f4271d470794a773a92bacd8ba086c9bc1cd;p=senf.git diff --git a/PPI/Connectors.cc b/PPI/Connectors.cc index 7fe75a0..058a85c 100644 --- a/PPI/Connectors.cc +++ b/PPI/Connectors.cc @@ -39,6 +39,23 @@ //////////////////////////////////////// // private members +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 + remoteThrottled_ = false; +} + /////////////////////////////////////////////////////////////////////////// // senf::ppi::connector::ActiveConnector