Software /
code /
prosody-modules
Changeset
5725:616c0459aca7
mod_aws_profile: Fix use of timer API
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 12 Nov 2023 02:37:53 +0100 |
parents | 5724:0207fd248480 |
children | 5726:0ac4545cb4f9 |
files | mod_aws_profile/mod_aws_profile.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_aws_profile/mod_aws_profile.lua Sun Nov 12 02:35:34 2023 +0100 +++ b/mod_aws_profile/mod_aws_profile.lua Sun Nov 12 02:37:53 2023 +0100 @@ -49,7 +49,7 @@ current_credentials.access_key = credentials.access_key; current_credentials.secret_key = credentials.secret_key; current_credentials.expiry = credentials.expiry; - module:timer(credentials.ttl or 240, refresh_credentials); + module:add_timer(credentials.ttl or 240, refresh_credentials); module:fire_event("aws_profile/credentials-refreshed", current_credentials); end); end