Skip to content

Commit

Permalink
deal with mutex error not being locked
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaamani committed Jul 25, 2023
1 parent d894ea4 commit 132bbb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -171,6 +170,7 @@ app.post('/register', async (req, res) => {
1
)
}
processingRequest.unlock()
stopTimer()
})
})
Expand Down

0 comments on commit 132bbb6

Please sign in to comment.