Formatting
This commit is contained in:
parent
9c82de7df2
commit
626b6f5ccd
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ class SiteAnnouncer(object):
|
||||||
|
|
||||||
@util.Noparallel(blocking=False)
|
@util.Noparallel(blocking=False)
|
||||||
def announce(self, force=False, mode="start", pex=True):
|
def announce(self, force=False, mode="start", pex=True):
|
||||||
if time.time() < self.time_last_announce + 30 and not force:
|
if time.time() - self.time_last_announce < 30 and not force:
|
||||||
return # No reannouncing within 30 secs
|
return # No reannouncing within 30 secs
|
||||||
if force:
|
if force:
|
||||||
self.site.log.debug("Force reannounce in mode %s" % mode)
|
self.site.log.debug("Force reannounce in mode %s" % mode)
|
||||||
|
|
Loading…
Reference in a new issue