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,6 +818,7 @@ class Site(object):
return peer return peer
def announce(self, *args, **kwargs): def announce(self, *args, **kwargs):
if self.isServing():
self.announcer.announce(*args, **kwargs) self.announcer.announce(*args, **kwargs)
# Keep connections to get the updates # Keep connections to get the updates