Prevent adding "master" to a group
This commit is contained in:
parent
a67008a5cb
commit
46fe83cfff
@ -155,6 +155,10 @@ RouteGroup::~RouteGroup ()
|
||||
int
|
||||
RouteGroup::add (boost::shared_ptr<Route> r)
|
||||
{
|
||||
if (r->is_master()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (find (routes->begin(), routes->end(), r) != routes->end()) {
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user