Skip to content

Commit

Permalink
Move prepLock disable to end of timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
MorningLightMountain713 committed Jan 9, 2025
1 parent 5d03ab5 commit 18647b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ZelBack/src/services/fluxService.js
Original file line number Diff line number Diff line change
Expand Up @@ -1656,8 +1656,6 @@ async function streamChainPreparation(req, res) {
res.json(response);
} finally {
setTimeout(() => {
prepLock = false;

if (daemonStartRequired) {
// start services
if (isArcane) {
Expand All @@ -1667,6 +1665,7 @@ async function streamChainPreparation(req, res) {
serviceHelper.runCommand('pm2', { runAsRoot: false, params: ['start', 'watchdog', '--watch'] });
}
}
prepLock = false;
}, 30 * 1000);
}
}
Expand Down

0 comments on commit 18647b1

Please sign in to comment.