Skip to content
Browse files

Pass decode_types through recursive decode.

  • Loading branch information...
1 parent 13430b1 commit f95800efac5e50bbbbeeed291ee3ddf3589dead3 @archaelus committed Mar 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/enet_codec.erl
View
2 src/enet_codec.erl
@@ -62,7 +62,7 @@ decode(Type, Data, Options) ->
true ->
{Mod, MOpts} = mod_options(Type, Options),
true = Mod =/= error,
- case Mod:decode(Data, MOpts) of
+ case Mod:decode(Data, [{decode_types, TypesToDecode} | MOpts]) of
{error, _} -> Data;
Decoded -> Decoded
end;

0 comments on commit f95800e

Please sign in to comment.
Something went wrong with that request. Please try again.