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.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/libs/surfaces/launch_control_xl/launch_control_xl.cc b/libs/surfaces/launch_control_xl/launch_control_xl.cc
index da1a9d7c86..7d7ffff442 100644
--- a/libs/surfaces/launch_control_xl/launch_control_xl.cc
+++ b/libs/surfaces/launch_control_xl/launch_control_xl.cc
@@ -835,10 +835,6 @@ LaunchControlXL::switch_bank (uint32_t base)
write(sr->state_msg( !(base) ));
}
-
-
- stripable_connections.drop_connections ();
-
/* work backwards so we can tell if we should actually switch banks */
boost::shared_ptr<Stripable> s[8];
@@ -853,12 +849,11 @@ LaunchControlXL::switch_bank (uint32_t base)
if (!s[0]) {
/* not even the first stripable exists, do nothing */
- for (int n = 0; n < 7; ++n) {
- stripable[n].reset ();
- }
return;
}
+ stripable_connections.drop_connections ();
+
for (int n = 0; n < 7; ++n) {
stripable[n] = s[n];
}