Permalink
Browse files

Return StateData if handle_state is not defined

  • Loading branch information...
1 parent 2b4d201 commit bdc73aab7093a38f1f225584b71f992332bbc992 @yrashk committed Feb 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gen_fsm2.erl
View
2 src/gen_fsm2.erl
@@ -399,7 +399,7 @@ handle_state_handler(Mod, StateName, StateData) ->
terminate(Reason, handle_state, undefined, Mod, StateName, NStateData, [])
end;
_ ->
- ignore
+ StateData
end.

0 comments on commit bdc73aa

Please sign in to comment.