Decorator is expecting argument to be named slug_candidate, not shutdown_slug_candidate (#200)

This commit is contained in:
Micah Lee 2015-12-04 13:17:45 -08:00
parent 9d1abf668a
commit f4780813d6
2 changed files with 2 additions and 2 deletions

View file

@ -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():
"""

View file

@ -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()