Don't annunce site if not serving
This commit is contained in:
parent
1f9eafa619
commit
6eb79ba75e
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue