Skip to content

Commit

Permalink
Fix clearing timeout using clearTimeout (#218)
Browse files Browse the repository at this point in the history
Signed-off-by: Karan Raina <karanraina1996@gmail.com>
  • Loading branch information
karankraina authored Jun 2, 2024
1 parent 9640a1c commit a397f22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ async function fastifyUnderPressure (fastify, opts) {
}

function onClose (fastify, done) {
clearInterval(timer)
clearInterval(externalHealthCheckTimer)
clearTimeout(timer)
clearTimeout(externalHealthCheckTimer)
done()
}
}
Expand Down

0 comments on commit a397f22

Please sign in to comment.