diff options
author | Jan Lentfer <jan.lentfer@web.de> | 2018-09-21 09:25:17 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-09-22 15:12:26 +0200 |
commit | 7d6c9c3085b4f3603bee6275525e592b2b475395 (patch) | |
tree | 2923a73fdfe96e68ea7859904e569642b7e946a2 | |
parent | 3b151c8cfb087fac11628bddce484510816b8af2 (diff) |
LCXL: Fix a crash on exit
-rw-r--r-- | libs/surfaces/launch_control_xl/launch_control_xl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/surfaces/launch_control_xl/launch_control_xl.cc b/libs/surfaces/launch_control_xl/launch_control_xl.cc index 35d56298d3..15bd40580b 100644 --- a/libs/surfaces/launch_control_xl/launch_control_xl.cc +++ b/libs/surfaces/launch_control_xl/launch_control_xl.cc @@ -706,7 +706,7 @@ LaunchControlXL::set_state (const XMLNode & node, int version) void LaunchControlXL::port_registration_handler () { - if (!_async_in || !_async_out) { + if (!_async_in || !_async_out || !_input_port || !_output_port) { /* ports not registered yet */ return; } @@ -748,7 +748,7 @@ bool LaunchControlXL::connection_handler (boost::weak_ptr<ARDOUR::Port>, std::string name1, boost::weak_ptr<ARDOUR::Port>, std::string name2, bool yn) { DEBUG_TRACE (DEBUG::LaunchControlXL, "LaunchControlXL::connection_handler start\n"); - if (!_input_port || !_output_port) { + if (!_async_in || !_async_out) { return false; } |