aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Jacq <mig@mig5.net>2019-02-19 08:37:32 +1100
committerMiguel Jacq <mig@mig5.net>2019-02-19 08:37:32 +1100
commit3743d9a48044476394f95013cd5bb80bc2921cbd (patch)
treeb179802ec31f831d751c6ccde3d175a43d86127d
parent8e200cd8b031225e13a309359142ec4442f772a0 (diff)
downloadonionshare-3743d9a48044476394f95013cd5bb80bc2921cbd.tar.gz
onionshare-3743d9a48044476394f95013cd5bb80bc2921cbd.zip
Always reset the slug to an empty string when the web server stops
-rw-r--r--onionshare/web/web.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/onionshare/web/web.py b/onionshare/web/web.py
index 010702be..66ba5b24 100644
--- a/onionshare/web/web.py
+++ b/onionshare/web/web.py
@@ -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: