This commit is contained in:
Feng Lee 2015-06-03 23:50:02 +08:00
parent 0044514a87
commit 053ddf6113
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ wrap(Header, Rest) ->
% parse_qos(Rest, [QoS | Acc]).
parse_topics(_, <<>>, Topics) ->
Topics;
lists:reverse(Topics);
parse_topics(?SUBSCRIBE = Sub, Bin, Topics) ->
{Name, <<_:6, QoS:2, Rest/binary>>} = parse_utf(Bin),
parse_topics(Sub, Rest, [{Name, QoS}| Topics]);