This commit is contained in:
Feng Lee 2016-08-16 15:38:38 +08:00
parent ef8006bc89
commit 595c0f2d5a
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ unreg_session(ClientId) ->
dispatch(ClientId, Topic, Msg) ->
try ets:lookup_element(mqtt_local_session, ClientId, 2) of
Pid -> Pid ! {deliver, Topic, Msg}
Pid -> Pid ! {dispatch, Topic, Msg}
catch
error:badarg -> io:format("Session Not Found: ~p~n", [ClientId]), ok %%TODO: How??
end.