Change thread names
- not needed to have "Thread" in the name of a thread
This commit is contained in:
parent
4fce01e34a
commit
f088e0ae21
|
@ -10,9 +10,9 @@ import state
|
||||||
|
|
||||||
class AddrThread(threading.Thread, StoppableThread):
|
class AddrThread(threading.Thread, StoppableThread):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
threading.Thread.__init__(self, name="AddrThread")
|
threading.Thread.__init__(self, name="AddrBroadcaster")
|
||||||
self.initStop()
|
self.initStop()
|
||||||
self.name = "AddrThread"
|
self.name = "AddrBroadcaster"
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
while not state.shutdown:
|
while not state.shutdown:
|
||||||
|
|
|
@ -11,9 +11,9 @@ import state
|
||||||
|
|
||||||
class AnnounceThread(threading.Thread, StoppableThread):
|
class AnnounceThread(threading.Thread, StoppableThread):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
threading.Thread.__init__(self, name="AnnounceThread")
|
threading.Thread.__init__(self, name="Announcer")
|
||||||
self.initStop()
|
self.initStop()
|
||||||
self.name = "AnnounceThread"
|
self.name = "Announcer"
|
||||||
logger.info("init announce thread")
|
logger.info("init announce thread")
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|
|
@ -18,9 +18,9 @@ class DownloadThread(threading.Thread, StoppableThread):
|
||||||
requestExpires = 600
|
requestExpires = 600
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
threading.Thread.__init__(self, name="DownloadThread")
|
threading.Thread.__init__(self, name="Downloader")
|
||||||
self.initStop()
|
self.initStop()
|
||||||
self.name = "DownloadThread"
|
self.name = "Downloader"
|
||||||
logger.info("init download thread")
|
logger.info("init download thread")
|
||||||
self.pending = {}
|
self.pending = {}
|
||||||
self.lastCleaned = time.time()
|
self.lastCleaned = time.time()
|
||||||
|
|
|
@ -10,9 +10,9 @@ import state
|
||||||
|
|
||||||
class InvThread(threading.Thread, StoppableThread):
|
class InvThread(threading.Thread, StoppableThread):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
threading.Thread.__init__(self, name="InvThread")
|
threading.Thread.__init__(self, name="InvBroadcaster")
|
||||||
self.initStop()
|
self.initStop()
|
||||||
self.name = "InvThread"
|
self.name = "InvBroadcaster"
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
while not state.shutdown:
|
while not state.shutdown:
|
||||||
|
|
|
@ -9,9 +9,9 @@ import state
|
||||||
|
|
||||||
class BMNetworkThread(threading.Thread, StoppableThread):
|
class BMNetworkThread(threading.Thread, StoppableThread):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
threading.Thread.__init__(self, name="AsyncoreThread")
|
threading.Thread.__init__(self, name="Asyncore")
|
||||||
self.initStop()
|
self.initStop()
|
||||||
self.name = "AsyncoreThread"
|
self.name = "Asyncore"
|
||||||
logger.info("init asyncore thread")
|
logger.info("init asyncore thread")
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user