From 3743d9a48044476394f95013cd5bb80bc2921cbd Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Tue, 19 Feb 2019 08:37:32 +1100 Subject: Always reset the slug to an empty string when the web server stops --- onionshare/web/web.py | 3 +++ 1 file changed, 3 insertions(+) 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://shutdown if self.running: try: -- cgit v1.2.3-54-g00ecf