# HG changeset patch # User Kim Alvefur # Date 1699753073 -3600 # Node ID 616c0459aca7066a7b25194cee39dcc28403ea7c # Parent 0207fd24848034af497911a7043e287d2323ad0a mod_aws_profile: Fix use of timer API diff -r 0207fd248480 -r 616c0459aca7 mod_aws_profile/mod_aws_profile.lua --- 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