summaryrefslogtreecommitdiff
path: root/libs/surfaces/launch_control_xl/launch_control_xl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/surfaces/launch_control_xl/launch_control_xl.cc')
-rw-r--r--libs/surfaces/launch_control_xl/launch_control_xl.cc4
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;
}