mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-22 16:28:30 +02:00
fix(idlewatcher): remove duplicated w.readyNotifyCh notification
This commit is contained in:
@@ -612,10 +612,6 @@ func (w *Watcher) watchUntilDestroy() (returnCause error) {
|
|||||||
if ready {
|
if ready {
|
||||||
// Container is now ready, notify waiting handlers
|
// Container is now ready, notify waiting handlers
|
||||||
w.healthTicker.Stop()
|
w.healthTicker.Stop()
|
||||||
select {
|
|
||||||
case w.readyNotifyCh <- struct{}{}:
|
|
||||||
default: // channel full, notification already pending
|
|
||||||
}
|
|
||||||
w.resetIdleTimer()
|
w.resetIdleTimer()
|
||||||
}
|
}
|
||||||
// If not ready yet, keep checking on next tick
|
// If not ready yet, keep checking on next tick
|
||||||
|
|||||||
Reference in New Issue
Block a user