Issue #460 - Timer Tick at interval of (Keepalive * 1.5)/2

This commit is contained in:
Feng 2016-03-01 18:59:12 +08:00
parent 616b6df020
commit cf4dfe632f
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ send_willmsg(ClientId, WillMsg) ->
start_keepalive(0) -> ignore; start_keepalive(0) -> ignore;
start_keepalive(Sec) when Sec > 0 -> start_keepalive(Sec) when Sec > 0 ->
self() ! {keepalive, start, round(Sec * 1.2)}. self() ! {keepalive, start, round(Sec * 0.75)}.
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
%% Validate Packets %% Validate Packets