mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-14 16:57:16 -05:00
Decorator is expecting argument to be named slug_candidate, not shutdown_slug_candidate (#200)
This commit is contained in:
parent
9d1abf668a
commit
f4780813d6
@ -250,7 +250,7 @@ def page_not_found(e):
|
|||||||
shutdown_slug = helpers.random_string(16)
|
shutdown_slug = helpers.random_string(16)
|
||||||
|
|
||||||
|
|
||||||
@app.route("/<shutdown_slug_candidate>/shutdown")
|
@app.route("/<slug_candidate>/shutdown")
|
||||||
@check_slug_candidate(shutdown_slug)
|
@check_slug_candidate(shutdown_slug)
|
||||||
def shutdown():
|
def shutdown():
|
||||||
"""
|
"""
|
||||||
|
@ -185,7 +185,7 @@ class OnionShareGui(QtGui.QWidget):
|
|||||||
"""
|
"""
|
||||||
Stop the onionshare server.
|
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)
|
web.stop(self.app.port)
|
||||||
self.app.cleanup()
|
self.app.cleanup()
|
||||||
self.filesize_warning.hide()
|
self.filesize_warning.hide()
|
||||||
|
Loading…
Reference in New Issue
Block a user