From 7d6c9c3085b4f3603bee6275525e592b2b475395 Mon Sep 17 00:00:00 2001 From: Jan Lentfer Date: Fri, 21 Sep 2018 09:25:17 +0200 Subject: [PATCH] LCXL: Fix a crash on exit --- libs/surfaces/launch_control_xl/launch_control_xl.cc | 4 ++-- 1 file 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, std::string name1, boost::weak_ptr, 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; }