13
0

monitor send does not count in Route::nth_send()

This commit is contained in:
Paul Davis 2016-01-27 16:26:41 -05:00
parent 66686a4e2a
commit 7513176501

View File

@ -4515,6 +4515,14 @@ Route::nth_send (uint32_t n) const
for (i = _processors.begin(); i != _processors.end(); ++i) {
if (boost::dynamic_pointer_cast<Send> (*i)) {
if ((*i)->name() == _("Monitor")) {
/* send to monitor section is not considered
to be an accessible send.
*/
continue;
}
if (n-- == 0) {
return *i;
}