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 GitHub
parent 19ee7849f8
commit 73fd4b9230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

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) {