Skip to content

Commit

Permalink
Fix minor issue with occasional crash on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
cam72cam committed Oct 4, 2023
1 parent 2db0d35 commit bd34c22
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,13 @@ public double getRollDegrees() {
}

public void removed() {
clackFront.stop();
clackRear.stop();
// These should never be null, but for some reason they are
if (clackFront != null) {
clackFront.stop();
}
if (clackRear != null) {
clackRear.stop();
}
}
}

Expand Down

0 comments on commit bd34c22

Please sign in to comment.