Skip to content

Commit 9b23540

Browse files
committed
do not exit backend on uncaught exception
1 parent 403f88f commit 9b23540

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

backend/src/index.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,4 @@ process.on('uncaughtException', (err, origin) => {
170170
},
171171
'uncaught exception detected',
172172
)
173-
174-
server.close(() => {
175-
process.exit(1)
176-
})
177-
178-
// If a graceful shutdown is not achieved after 1 second,
179-
// shut down the process completely
180-
setTimeout(() => {
181-
process.abort() // exit immediately and generate a core dump file
182-
}, 1000).unref()
183-
process.exit(1)
184173
})

0 commit comments

Comments
 (0)