From ccb4819a944a1822b99000f4ab1d14430e5121ec Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Thu, 22 Jul 2021 20:38:42 -0600 Subject: [PATCH] Adds small timeout to restart server API call Fixes typo in translation description for video cropping --- backend/app.js | 3 ++- src/assets/i18n/messages.en.xlf | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/app.js b/backend/app.js index 3c30dab..78dae1b 100644 --- a/backend/app.js +++ b/backend/app.js @@ -1583,7 +1583,8 @@ app.post('/api/setConfig', optionalJwt, function(req, res) { }); app.post('/api/restartServer', optionalJwt, (req, res) => { - restartServer(); + // delayed by a little bit so that the client gets a response + setTimeout(() => {restartServer()}, 100); res.send({success: true}); }); diff --git a/src/assets/i18n/messages.en.xlf b/src/assets/i18n/messages.en.xlf index e8b58dd..99e0f16 100644 --- a/src/assets/i18n/messages.en.xlf +++ b/src/assets/i18n/messages.en.xlf @@ -252,7 +252,7 @@ src/app/main/main.component.html 159 - Crom from placeholder + Crop from placeholder Crop to (seconds)