Don't annunce site if not serving

This commit is contained in:
shortcutme 2019-10-06 03:08:54 +02:00
parent 1f9eafa619
commit 6eb79ba75e
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -818,7 +818,8 @@ class Site(object):
return peer
def announce(self, *args, **kwargs):
self.announcer.announce(*args, **kwargs)
if self.isServing():
self.announcer.announce(*args, **kwargs)
# Keep connections to get the updates
def needConnections(self, num=None, check_site_on_reconnect=False):