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 6a658982a0
commit 7690a63935

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: