mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-13 06:51:30 +03:00
Adds small timeout to restart server API call
Fixes typo in translation description for video cropping
This commit is contained in:
@@ -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});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user