From 7d862446d7c98472f83d9ec2d167a76f294c731d Mon Sep 17 00:00:00 2001 From: Josh Brandoff Date: Fri, 13 Feb 2015 22:36:02 -0500 Subject: [PATCH] Daemonize the unstoppable stoppable threads... --- storjtorrent/thread_management.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/storjtorrent/thread_management.py b/storjtorrent/thread_management.py index afd81e4..bd855e1 100644 --- a/storjtorrent/thread_management.py +++ b/storjtorrent/thread_management.py @@ -3,7 +3,7 @@ # The MIT License (MIT) # -# Copyright (c) 2014 Josh Brandoff +# Copyright (c) 2014-2015 Josh Brandoff # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -38,6 +38,7 @@ def __init__(self): """Initialize the stoppable thread.""" Thread.__init__(self) self.stop_event = Event() + self.daemon = True def stop(self): """Stop thread if it is alive."""