From 7839ff8057b732947463ae9982007bb40580f487 Mon Sep 17 00:00:00 2001 From: Elia Zammuto Date: Mon, 30 Aug 2021 20:46:14 +0200 Subject: [PATCH] Minor tweaks to troubleshooting page --- assets/web/troubleshooting.html | 40 ++++++++++++++++----------------- sunshine/confighttp.cpp | 25 ++++----------------- 2 files changed, 24 insertions(+), 41 deletions(-) diff --git a/assets/web/troubleshooting.html b/assets/web/troubleshooting.html index e1bed390..70c90c99 100644 --- a/assets/web/troubleshooting.html +++ b/assets/web/troubleshooting.html @@ -2,7 +2,7 @@

Troubleshooting

-
+

Force Close


@@ -15,20 +15,20 @@

Error while closing Appplication
-
-
- +
+ +
-
+

Unpair All Clients


Remove all your paired devices

@@ -38,15 +38,15 @@
Error while unpairing
-
-
- +
+ +
diff --git a/sunshine/confighttp.cpp b/sunshine/confighttp.cpp index 5c5b1120..c4440b95 100644 --- a/sunshine/confighttp.cpp +++ b/sunshine/confighttp.cpp @@ -524,17 +524,8 @@ void unpairAll(resp_https_t response, req_https_t request){ pt::write_json(data, outputTree); response->write(data.str()); }); - - try { - nvhttp::erase_all_clients(); - outputTree.put("status", true); - } - catch(std::exception &e) { - BOOST_LOG(warning) << "unpairAll: "sv << e.what(); - outputTree.put("status", false); - outputTree.put("error", e.what()); - return; - } + nvhttp::erase_all_clients(); + outputTree.put("status", true); } void closeApp(resp_https_t response, req_https_t request){ @@ -550,16 +541,8 @@ void closeApp(resp_https_t response, req_https_t request){ response->write(data.str()); }); - try { - proc::proc.terminate(); - outputTree.put("status", true); - } - catch(std::exception &e) { - BOOST_LOG(warning) << "CloseApp: "sv << e.what(); - outputTree.put("status", false); - outputTree.put("error", e.what()); - return; - } + proc::proc.terminate(); + outputTree.put("status", true); } void start() {