Fix 'function not exported' crash

This commit is contained in:
Feng Lee 2018-12-12 14:53:22 +08:00
parent 47e3cd3692
commit 99872b253f
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(),
case ets:member(?SUBOPTION, {SubPid, Topic}) of
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));
true -> ok
end.