fix: ensure o.refresher can never be nil
This commit is contained in:
parent
a439ca8002
commit
e7bfd0c6c9
|
@ -108,6 +108,11 @@ func (o Oauth) keepAlive() {
|
|||
return
|
||||
}
|
||||
|
||||
if o.refresher == nil {
|
||||
o.logger.Error("No refresher provided.")
|
||||
return
|
||||
}
|
||||
|
||||
if o.keepAliveRunning {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue