Prevent multiple timers
This commit is contained in:
parent
5792336368
commit
9a15001c8b
1 changed files with 2 additions and 0 deletions
|
|
@ -78,6 +78,8 @@
|
||||||
(aws--login role))))
|
(aws--login role))))
|
||||||
(funcall auth-fn)
|
(funcall auth-fn)
|
||||||
(when aws-auto-reauth
|
(when aws-auto-reauth
|
||||||
|
(when aws-reauth-timer
|
||||||
|
(cancel-timer aws-reauth-timer))
|
||||||
(setq aws-reauth-timer (run-at-time t (* 60 aws-auto-reauth) auth-fn)))))
|
(setq aws-reauth-timer (run-at-time t (* 60 aws-auto-reauth) auth-fn)))))
|
||||||
|
|
||||||
(provide 'aws)
|
(provide 'aws)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue