diff --git a/p2p/discover/table_reval.go b/p2p/discover/table_reval.go index 1519313d19da..d5135bd9eba5 100644 --- a/p2p/discover/table_reval.go +++ b/p2p/discover/table_reval.go @@ -84,7 +84,9 @@ func (tr *tableRevalidation) run(tab *Table, now mclock.AbsTime) (nextTime mcloc } // Update nextTime regardless if any requests were started because // current value has passed. + tab.mutex.Lock() list.schedule(now, &tab.rand) + tab.mutex.Unlock() } } reval(&tr.fast)