Change thread names

- not needed to have "Thread" in the name of a thread
master
Peter Šurda 6 years ago
parent 4fce01e34a
commit f088e0ae21
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

@ -10,9 +10,9 @@ import state
class AddrThread(threading.Thread, StoppableThread):
def __init__(self):
threading.Thread.__init__(self, name="AddrThread")
threading.Thread.__init__(self, name="AddrBroadcaster")
self.initStop()
self.name = "AddrThread"
self.name = "AddrBroadcaster"
def run(self):
while not state.shutdown:

@ -11,9 +11,9 @@ import state
class AnnounceThread(threading.Thread, StoppableThread):
def __init__(self):
threading.Thread.__init__(self, name="AnnounceThread")
threading.Thread.__init__(self, name="Announcer")
self.initStop()
self.name = "AnnounceThread"
self.name = "Announcer"
logger.info("init announce thread")
def run(self):

@ -18,9 +18,9 @@ class DownloadThread(threading.Thread, StoppableThread):
requestExpires = 600
def __init__(self):
threading.Thread.__init__(self, name="DownloadThread")
threading.Thread.__init__(self, name="Downloader")
self.initStop()
self.name = "DownloadThread"
self.name = "Downloader"
logger.info("init download thread")
self.pending = {}
self.lastCleaned = time.time()

@ -10,9 +10,9 @@ import state
class InvThread(threading.Thread, StoppableThread):
def __init__(self):
threading.Thread.__init__(self, name="InvThread")
threading.Thread.__init__(self, name="InvBroadcaster")
self.initStop()
self.name = "InvThread"
self.name = "InvBroadcaster"
def run(self):
while not state.shutdown:

@ -9,9 +9,9 @@ import state
class BMNetworkThread(threading.Thread, StoppableThread):
def __init__(self):
threading.Thread.__init__(self, name="AsyncoreThread")
threading.Thread.__init__(self, name="Asyncore")
self.initStop()
self.name = "AsyncoreThread"
self.name = "Asyncore"
logger.info("init asyncore thread")
def run(self):

Loading…
Cancel
Save