Add SendFun case for emqx-sn

This commit is contained in:
Gilbert Wong 2018-10-18 15:01:45 +08:00
parent df713959ab
commit 387f2468c0
1 changed files with 3 additions and 0 deletions

View File

@ -562,6 +562,9 @@ send(Packet = ?PACKET(Type), PState = #pstate{proto_ver = Ver, sendfun = SendFun
{binary, _Data} ->
emqx_metrics:sent(Packet),
{ok, inc_stats(send, Type, PState)};
{datagram, _Peer, _Data} ->
emqx_metrics:sent(Packet),
{ok, inc_stats(send, Type, PState)};
{error, Reason} ->
{error, Reason}
end.