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,6 +21,7 @@ class DHTHashAnnouncer(object):
self.sem = defer.DeferredSemaphore(self.concurrent_announcers) self.sem = defer.DeferredSemaphore(self.concurrent_announcers)
def start(self): def start(self):
if self.concurrent_announcers:
self._manage_lc.start(30) self._manage_lc.start(30)
def stop(self): def stop(self):