Upon coming across an undefined mode entered using the @enter statement, the daemon erroneously states that it is entering the last mode on the mode stack. This PR uses a functional approach instead of the iterative approach to keep the behavior local to the conditional branch.
Upon coming across an undefined mode entered using the
@enter
statement, the daemon erroneously states that it is entering the last mode on the mode stack. This PR uses a functional approach instead of the iterative approach to keep the behavior local to the conditional branch.