Accumulate IO port-change signals return values
This was already done for IO::remove_port, but not yet for ::add_port
This commit is contained in:
parent
16fb29d576
commit
069bf034ab
@ -306,8 +306,8 @@ IO::add_port (string destination, void* src, DataType type)
|
||||
ChanCount after = before;
|
||||
after.set (type, after.get (type) + 1);
|
||||
|
||||
bool const r = PortCountChanging (after); /* EMIT SIGNAL */
|
||||
if (r) {
|
||||
boost::optional<bool> const r = PortCountChanging (after); /* EMIT SIGNAL */
|
||||
if (r.value_or (false)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user