fix
This commit is contained in:
parent
4a0eaa62bd
commit
3fdd5d1d60
@ -18,7 +18,6 @@ start_link(Transport, Peer) ->
|
|||||||
loop(Transport = {udp, Server, _Sock}, Peer) ->
|
loop(Transport = {udp, Server, _Sock}, Peer) ->
|
||||||
receive
|
receive
|
||||||
{datagram, Server, <<Len:16, HostUUID:Len/binary>>} ->
|
{datagram, Server, <<Len:16, HostUUID:Len/binary>>} ->
|
||||||
lager:debug("[iot_udp_handler] peer: ~p, get heartbeat of: ~p", [esockd:format(Peer), HostUUID]),
|
|
||||||
Pid = iot_host:get_pid(HostUUID),
|
Pid = iot_host:get_pid(HostUUID),
|
||||||
iot_host:heartbeat(Pid),
|
iot_host:heartbeat(Pid),
|
||||||
loop(Transport, Peer);
|
loop(Transport, Peer);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user