diff --git a/server.py b/server.py index 0f2b760..171d526 100755 --- a/server.py +++ b/server.py @@ -1704,8 +1704,6 @@ def saveSchedulerSettings(): @app.route("/saveScreensaverSettings", methods = ['PUT', 'POST']) def saveScreensaverSettings(): - - global displaying_screensaver data = request.data.decode('utf-8') input_settings = json.loads(data) @@ -1737,10 +1735,6 @@ def saveScreensaverSettings(): with open('clock_screensaver.json', 'w') as f: json.dump(clock_screensaver,f) - - if displaying_screensaver: - screensaver_p.close() - displaying_screensaver = False return index()