diff options
author | David Robillard <d@drobilla.net> | 2017-03-19 10:36:11 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-03-20 02:58:56 +0100 |
commit | efc0fe0a973db706d9409b345ad6fae585f4388c (patch) | |
tree | 6348b6bd17e358ed328b5c443966436fb36521e5 /src/server/events/Disconnect.cpp | |
parent | f46a3ec40a691a6892ad5536ca47de175a9c05b7 (diff) | |
download | ingen-efc0fe0a973db706d9409b345ad6fae585f4388c.tar.gz ingen-efc0fe0a973db706d9409b345ad6fae585f4388c.tar.bz2 ingen-efc0fe0a973db706d9409b345ad6fae585f4388c.zip |
Improve arc list efficiency
Diffstat (limited to 'src/server/events/Disconnect.cpp')
-rw-r--r-- | src/server/events/Disconnect.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/server/events/Disconnect.cpp b/src/server/events/Disconnect.cpp index 9320163a..176f0999 100644 --- a/src/server/events/Disconnect.cpp +++ b/src/server/events/Disconnect.cpp @@ -170,11 +170,12 @@ Disconnect::pre_process(PreProcessContext& ctx) bool Disconnect::Impl::execute(RunContext& context, bool set_head_buffers) { - ArcImpl* const port_arc = _head->remove_arc(context, _tail); - - if (!port_arc) { + if (!_arc) { return false; - } else if (_head->is_driver_port()) { + } + + _head->remove_arc(*_arc.get()); + if (_head->is_driver_port()) { return true; } |