mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-20 07:21:26 +02:00
idlewatcher/waker: refactor
This commit is contained in:
@@ -134,6 +134,10 @@ func (w *Watcher) checkUpdateState() (ready bool, err error) {
|
||||
return true, nil
|
||||
}
|
||||
|
||||
if !w.running() {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
if w.metric != nil {
|
||||
defer w.metric.Set(float64(w.Status()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user