Only trigger state transitons if next_state != old_state
#8359
+13
−11
next_state != old_state
#8359