Skip to content

Commit

Permalink
solve client crash of KademliaTable.getValue (#673)
Browse files Browse the repository at this point in the history
* solve client crash of KademliaTable.getValue

* Fix bracket placement
  • Loading branch information
foufrix authored Nov 14, 2024
1 parent ad7a1a0 commit b6b334a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ const main = async () => {
log(`Started JSON RPC Server address=http://${rpcAddr}:${args.rpcPort}`)
}

process.on('uncaughtException', (err) => {
// discv5 is occasionally throwing an uncaught exception when handling
// incoming messages related to the handshake process. These can safely be
// ignored
console.error('Uncaught Exception:', err)
})
process.on('SIGINT', async () => {
console.log('Caught close signal, shutting down...')
await portal.stop()
Expand Down

0 comments on commit b6b334a

Please sign in to comment.