diff options
Diffstat (limited to 'src/state_machine.hpp')
-rw-r--r-- | src/state_machine.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state_machine.hpp b/src/state_machine.hpp index 3e525cf..259802c 100644 --- a/src/state_machine.hpp +++ b/src/state_machine.hpp @@ -53,7 +53,7 @@ struct MountPointStateMachine : public interfaces::MountPointStateMachine { state = std::move(newState); LogMsg(Logger::Info, name, " state changed to ", state->getStateName()); - if (newState = state->onEnter()) + if ((newState = state->onEnter())) { changeState(std::move(newState)); } |