mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 03:37:28 -03:00
Decorator is expecting argument to be named slug_candidate, not shutdown_slug_candidate (#200)
This commit is contained in:
parent
9d1abf668a
commit
f4780813d6
2 changed files with 2 additions and 2 deletions
|
@ -250,7 +250,7 @@ def page_not_found(e):
|
|||
shutdown_slug = helpers.random_string(16)
|
||||
|
||||
|
||||
@app.route("/<shutdown_slug_candidate>/shutdown")
|
||||
@app.route("/<slug_candidate>/shutdown")
|
||||
@check_slug_candidate(shutdown_slug)
|
||||
def shutdown():
|
||||
"""
|
||||
|
|
|
@ -185,7 +185,7 @@ class OnionShareGui(QtGui.QWidget):
|
|||
"""
|
||||
Stop the onionshare server.
|
||||
"""
|
||||
if self.server_status.status == self.server_status.STATUS_STARTED:
|
||||
if self.server_status.status != self.server_status.STATUS_STOPPED:
|
||||
web.stop(self.app.port)
|
||||
self.app.cleanup()
|
||||
self.filesize_warning.hide()
|
||||
|
|
Loading…
Reference in a new issue