Update AnnounceLocalPlugin.py

This commit is contained in:
ultramassiveblackhole 2021-01-30 15:47:01 +00:00 committed by GitHub
parent 61f8c826d9
commit 351702a9ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -67,10 +67,10 @@ class LocalAnnouncer(BroadcastServer.BroadcastServer):
if sender["peer_id"] in self.known_peers:
self.known_peers[sender["peer_id"]]["found"] = time.time()
if params["sites_changed"] != self.known_peers.get(sender["peer_id"], {}).get("sites_changed"):
# Peer's site list changed, request the list of new sites
# Peers site list changed, request the list of new sites
return {"cmd": "siteListRequest"}
else:
# Peer's site list is the same
# Peers site list is the same
for site in self.server.sites.values():
peer = site.peers.get("%s:%s" % (sender["ip"], sender["port"]))
if peer: