Fix the message delivery to remote

This commit is contained in:
terry-xiaoyu 2018-09-21 18:18:18 +08:00 committed by Feng Lee
parent 3822ff987b
commit 389b3c80bc
1 changed files with 1 additions and 1 deletions

View File

@ -775,7 +775,7 @@ redeliver({pubrel, PacketId}, #state{conn_pid = ConnPid}) ->
deliver(PacketId, Msg, #state{conn_pid = ConnPid, binding = local}) ->
ConnPid ! {deliver, {publish, PacketId, Msg}};
deliver(PacketId, Msg, #state{conn_pid = ConnPid, binding = remote}) ->
emqx_rpc:cast(node(ConnPid), erlang, send, [ConnPid, {deliver, PacketId, Msg}]).
emqx_rpc:cast(node(ConnPid), erlang, send, [ConnPid, {deliver, {publish, PacketId, Msg}}]).
%%------------------------------------------------------------------------------
%% Awaiting ACK for QoS1/QoS2 Messages