mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
The uid was getting incremented by 1 during registration but not decremented by 1 during cancellation, so cancellation didn't work correctly. As the underlying registration ensures a non-zero result, don't increment the result.