fix bug for issue#1614
This commit is contained in:
Gilbert 2018-06-30 22:52:43 +08:00 committed by GitHub
commit aa6ae3ad8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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