Merge pull request #1639 from Gilbert-Wong/issue#1614
fix bug for issue#1614
This commit is contained in:
commit
aa6ae3ad8a
|
@ -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} ->
|
||||
|
|
Loading…
Reference in New Issue