From 486a2251564e6694967cff1860d9fdb16274363c Mon Sep 17 00:00:00 2001 From: James Lu Date: Tue, 8 Aug 2017 00:27:05 -0700 Subject: [PATCH] inspircd: mark endburstf() threads as daemon=True There is no reason whatsoever for this to even potentially block shutdown. --- protocols/inspircd.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/protocols/inspircd.py b/protocols/inspircd.py index b022cc3..7277bd9 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -366,7 +366,9 @@ class InspIRCdProtocol(TS6BaseProtocol): self._send_with_prefix(sid, 'ENDBURST') if endburst_delay: - threading.Thread(target=endburstf, name="protocols/inspircd delayed ENDBURST thread for %s@%s" % (sid, self.name)).start() + t = threading.Thread(target=endburstf, name="protocols/inspircd delayed ENDBURST thread for %s@%s" % (sid, self.name)) + t.daemon = True + t.start() else: # Else, send burst immediately self._send_with_prefix(sid, 'ENDBURST') return sid