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:
Robin Gareus 2024-03-13 03:54:52 +01:00
parent 16fb29d576
commit 069bf034ab
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}