From 7690a63935d132b98350a98e0882b95d43a51ebd Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Tue, 19 Feb 2019 08:37:32 +1100 Subject: [PATCH] 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: