fix(behavior): Properly break in decision switch statement.

Co-authored-by: jding <jding@roblox.com>
This commit is contained in:
jmding8 2021-11-01 10:51:12 -07:00 committed by Felix Sargent
parent f632b5fb2f
commit 09a927af25

View file

@ -413,10 +413,13 @@ static void decide_hold_tap(struct active_hold_tap *hold_tap,
switch (hold_tap->config->flavor) {
case FLAVOR_HOLD_PREFERRED:
decide_hold_preferred(hold_tap, decision_moment);
break;
case FLAVOR_BALANCED:
decide_balanced(hold_tap, decision_moment);
break;
case FLAVOR_TAP_PREFERRED:
decide_tap_preferred(hold_tap, decision_moment);
break;
}
if (hold_tap->status == STATUS_UNDECIDED) {