fix(sessds): Create a timer even if it's present in the map

This commit is contained in:
ieQu1 2023-12-01 00:59:09 +01:00
parent 1897e5c31b
commit 69f1ca43c3
1 changed files with 0 additions and 2 deletions

View File

@ -479,8 +479,6 @@ handle_timeout(ClientInfo, Timer, Session) ->
-spec ensure_timer(custom_timer_name(), timeout(), timerset()) ->
timerset().
ensure_timer(Name, _Time, Timers = #{}) when is_map_key(Name, Timers) ->
Timers;
ensure_timer(Name, Time, Timers = #{}) when Time > 0 ->
TRef = emqx_utils:start_timer(Time, {?MODULE, Name}),
Timers#{Name => TRef}.