fix: update the will message timestamp when it is ready to publish
This commit is contained in:
parent
35cc8e3b77
commit
dcd4640a57
|
@ -2146,7 +2146,8 @@ publish_will_msg(
|
|||
ok;
|
||||
false ->
|
||||
NMsg = emqx_mountpoint:mount(MountPoint, Msg),
|
||||
_ = emqx_broker:publish(NMsg),
|
||||
NMsg2 = NMsg#message{timestamp = erlang:system_time(millisecond)},
|
||||
_ = emqx_broker:publish(NMsg2),
|
||||
ok
|
||||
end.
|
||||
|
||||
|
|
Loading…
Reference in New Issue