From 132bbb68a3795b56538abbf73b378e7fe5f0de6a Mon Sep 17 00:00:00 2001 From: Mokhtar Naamani Date: Tue, 25 Jul 2023 11:55:28 +0300 Subject: [PATCH] deal with mutex error not being locked --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index b954508..48ac7f7 100644 --- a/src/app.ts +++ b/src/app.ts @@ -115,7 +115,6 @@ app.post('/register', async (req, res) => { } const callback = (result: AnyJson, statusCode: number) => { - processingRequest.unlock() res.setHeader('Content-Type', 'application/json') res.status(statusCode).send(result) const { error } = result as any @@ -171,6 +170,7 @@ app.post('/register', async (req, res) => { 1 ) } + processingRequest.unlock() stopTimer() }) })