Skip to content
Snippets Groups Projects
Commit c744edc2 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

fix sigint

parent 04963483
No related branches found
No related tags found
No related merge requests found
......@@ -180,4 +180,4 @@ events.emit(evtype.indexStart, rootCID)
console.log('🔌 connected to ' + KUBO_RPC)
console.log('👂 listening on topic ' + TOPIC + '...')
setInterval(() => {}, 1 << 30)
;['SIGINT', 'SIGTERM', 'SIGQUIT'].forEach((signal) => process.on(signal, process.exit))
;['SIGINT', 'SIGTERM', 'SIGQUIT'].forEach((signal) => process.on(signal, () => process.exit()))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment