Adds small timeout to restart server API call

Fixes typo in translation description for video cropping
This commit is contained in:
Isaac Abadi
2021-07-22 20:38:42 -06:00
parent ce8f90ca1d
commit ccb4819a94
2 changed files with 3 additions and 2 deletions

View File

@@ -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});
});