From 5d93515429fa37c1fa2c649ec33ced2d9d301883 Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 21 Nov 2023 23:01:59 -0500 Subject: [PATCH] Update RequestHandler.java (#1020) Co-authored-by: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com> --- .../main/java/org/photonvision/server/RequestHandler.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/photon-server/src/main/java/org/photonvision/server/RequestHandler.java b/photon-server/src/main/java/org/photonvision/server/RequestHandler.java index 81f669c4c2..d277f2904f 100644 --- a/photon-server/src/main/java/org/photonvision/server/RequestHandler.java +++ b/photon-server/src/main/java/org/photonvision/server/RequestHandler.java @@ -89,8 +89,9 @@ public static void onSettingsImportRequest(Context ctx) { if (ConfigManager.saveUploadedSettingsZip(tempFilePath.get())) { ctx.status(200); - ctx.result("Successfully saved the uploaded settings zip"); - logger.info("Successfully saved the uploaded settings zip"); + ctx.result("Successfully saved the uploaded settings zip, rebooting"); + logger.info("Successfully saved the uploaded settings zip, rebooting"); + restartProgram(); } else { ctx.status(500); ctx.result("There was an error while saving the uploaded zip file");