fix disabling blob announcement by setting concurrent announcers to 0

This commit is contained in:
Jack Robison 2018-08-09 09:22:55 -04:00
parent efb6af4d51
commit 917bae568d
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -21,7 +21,8 @@ class DHTHashAnnouncer(object):
self.sem = defer.DeferredSemaphore(self.concurrent_announcers)
def start(self):
self._manage_lc.start(30)
if self.concurrent_announcers:
self._manage_lc.start(30)
def stop(self):
if self._manage_lc.running: