Skip to content

Commit

Permalink
Daemonize the unstoppable stoppable threads...
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Brandoff committed Feb 14, 2015
1 parent 963eb8c commit 7d86244
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storjtorrent/thread_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."""
Expand Down

0 comments on commit 7d86244

Please sign in to comment.