fixed bug where hidden service still closed even if "close automatically" unchecked in GUI (#58)

This commit is contained in:
Micah Lee 2014-06-26 14:45:18 -04:00
parent 8fce3adeb5
commit d0d4cebbff
4 changed files with 29 additions and 3 deletions

View file

@ -85,6 +85,16 @@ def copy_url():
clipboard.setText(url)
return ''
@app.route("/stay_open_true")
def stay_open_true():
global onionshare
onionshare.set_stay_open(True)
@app.route("/stay_open_false")
def stay_open_false():
global onionshare
onionshare.set_stay_open(False)
@app.route("/heartbeat")
def check_for_requests():
global onionshare