fix: ensure o.refresher can never be nil

This commit is contained in:
Derrick Hammer 2024-02-11 22:33:08 -05:00
parent a439ca8002
commit e7bfd0c6c9
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 0 deletions

View File

@ -108,6 +108,11 @@ func (o Oauth) keepAlive() {
return
}
if o.refresher == nil {
o.logger.Error("No refresher provided.")
return
}
if o.keepAliveRunning {
return
}