mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-12 18:03:13 +00:00
## About The Pull Request Detective scanners make use of a `scanning` boolean to determine whether or not you can perform another action with it. It gets set to `FALSE` in its procs, but if any of those procs runtime for whatever reason this could lead to that never happening. Which in turn leads to it getting stuck in the `scanning = TRUE` state indefinitely. --- This PR just moves the functions into wrapper functions so that should a runtime occur, the boolean will still get set to `FALSE`. Also changed the boolean's name from `scanning` to `scanner_busy` because it is also used for the print function. Fixes https://github.com/Skyrat-SS13/Skyrat-tg/issues/18241 ## Why It's Good For The Game Code resiliency ## Changelog 🆑 fix: fixes a potential bug that can cause the detective scanner to get stuck in a scanning state indefinitely /🆑