Always reset the slug to an empty string when the web server stops

This commit is contained in:
Miguel Jacq 2019-02-19 08:37:32 +11:00
parent 8e200cd8b0
commit 3743d9a480
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -263,6 +263,9 @@ class Web(object):
# Let the mode know that the user stopped the server
self.stop_q.put(True)
# Reset any slug that was in use
self.slug = ''
# To stop flask, load http://127.0.0.1:<port>/<shutdown_slug>/shutdown
if self.running:
try: