fix bug for issue#1614

This commit is contained in:
Gilbert Wong 2018-06-14 09:56:49 +08:00
parent f9dde2f049
commit d7e46b367e
1 changed files with 1 additions and 0 deletions

View File

@ -386,6 +386,7 @@ handle_cast({subscribe, _From, TopicTable, AckFun},
SubMap1 = SubMap1 =
case maps:find(Topic, SubMap) of case maps:find(Topic, SubMap) of
{ok, NewQos} -> {ok, NewQos} ->
emqttd_hooks:run('session.subscribed', [ClientId, Username], {Topic, Opts}),
?LOG(warning, "Duplicated subscribe: ~s, qos = ~w", [Topic, NewQos], State), ?LOG(warning, "Duplicated subscribe: ~s, qos = ~w", [Topic, NewQos], State),
SubMap; SubMap;
{ok, OldQos} -> {ok, OldQos} ->