Fix 'function not exported' crash

This commit is contained in:
Feng Lee 2018-12-12 15:00:23 +08:00
commit ba9ea8161e
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ subscribe(Topic, SubId, SubOpts) when is_binary(Topic), ?is_subid(SubId), is_map
SubPid = self(), SubPid = self(),
case ets:member(?SUBOPTION, {SubPid, Topic}) of case ets:member(?SUBOPTION, {SubPid, Topic}) of
false -> false ->
ok = emqx_broker_helper:monitor_sub(SubPid, SubId), ok = emqx_broker_helper:register_sub(SubPid, SubId),
do_subscribe(Topic, SubPid, with_subid(SubId, SubOpts)); do_subscribe(Topic, SubPid, with_subid(SubId, SubOpts));
true -> ok true -> ok
end. end.