mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-17 13:02:42 -05:00
Always reset the slug to an empty string when the web server stops
This commit is contained in:
parent
8e200cd8b0
commit
3743d9a480
@ -263,6 +263,9 @@ class Web(object):
|
|||||||
# Let the mode know that the user stopped the server
|
# Let the mode know that the user stopped the server
|
||||||
self.stop_q.put(True)
|
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
|
# To stop flask, load http://127.0.0.1:<port>/<shutdown_slug>/shutdown
|
||||||
if self.running:
|
if self.running:
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user