mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-29 04:57:48 +01:00
burn less cpu when we aren't connected to anyone
This commit is contained in:
@@ -112,7 +112,9 @@ public class InvalidationQueueService {
|
||||
|
||||
public void pushInvalidationToAll(String name, boolean shouldNotifySeen) {
|
||||
synchronized (this) {
|
||||
for (var h : remoteHostManager.getSeenHosts()) {
|
||||
var hosts = remoteHostManager.getSeenHosts();
|
||||
if (hosts.isEmpty()) return;
|
||||
for (var h : hosts) {
|
||||
getSetForHost(h).add(Pair.of(name, shouldNotifySeen));
|
||||
}
|
||||
this.notifyAll();
|
||||
|
||||
Reference in New Issue
Block a user