Skip to content

Commit

Permalink
daemonize background thread
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Oct 29, 2015
1 parent 6a3bb76 commit 89873a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions example/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def index():
global thread
if thread is None:
thread = Thread(target=background_thread)
thread.daemon = True
thread.start()
return render_template('index.html')

Expand Down

0 comments on commit 89873a8

Please sign in to comment.