From f088e0ae21916c05deab43d2cdac12ec40fcaf22 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Mon, 10 Jul 2017 07:05:50 +0200 Subject: [PATCH] Change thread names - not needed to have "Thread" in the name of a thread --- src/network/addrthread.py | 4 ++-- src/network/announcethread.py | 4 ++-- src/network/downloadthread.py | 4 ++-- src/network/invthread.py | 4 ++-- src/network/networkthread.py | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/network/addrthread.py b/src/network/addrthread.py index e0b31b6e..8c78894f 100644 --- a/src/network/addrthread.py +++ b/src/network/addrthread.py @@ -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: diff --git a/src/network/announcethread.py b/src/network/announcethread.py index 354cfaa8..26d9f9cf 100644 --- a/src/network/announcethread.py +++ b/src/network/announcethread.py @@ -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): diff --git a/src/network/downloadthread.py b/src/network/downloadthread.py index d1c7b0f4..34f23eed 100644 --- a/src/network/downloadthread.py +++ b/src/network/downloadthread.py @@ -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() diff --git a/src/network/invthread.py b/src/network/invthread.py index 0cc689b4..d680ea13 100644 --- a/src/network/invthread.py +++ b/src/network/invthread.py @@ -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: diff --git a/src/network/networkthread.py b/src/network/networkthread.py index a4a23103..25e9f547 100644 --- a/src/network/networkthread.py +++ b/src/network/networkthread.py @@ -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):