fix(mqtt): mqtt5 property session expiry interval not working

This commit is contained in:
Shawn 2021-07-23 15:13:44 +08:00
parent 6710695f9d
commit 14da108443
1 changed files with 1 additions and 1 deletions

View File

@ -737,7 +737,7 @@ process_disconnect(ReasonCode, Properties, Channel) ->
maybe_update_expiry_interval(#{'Session-Expiry-Interval' := Interval},
Channel = #channel{conninfo = ConnInfo}) ->
Channel#channel{conninfo = ConnInfo#{expiry_interval => Interval}};
Channel#channel{conninfo = ConnInfo#{expiry_interval => timer:seconds(Interval)}};
maybe_update_expiry_interval(_Properties, Channel) -> Channel.
%%--------------------------------------------------------------------