Skip to content

Commit

Permalink
add error listener so the app isnt killed when throwing error
Browse files Browse the repository at this point in the history
  • Loading branch information
roks0n committed Jul 21, 2019
1 parent 4758463 commit d859a5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deadlock-delegate/crawler",
"version": "1.2.3",
"version": "1.2.4",
"description": "Crawler scans the ARK network to get information about the peers in the network.",
"main": "src/crawler.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/peer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class Peers {
return connection
}
connection = SocketClient.create({ hostname: ip, port })
connection.on('error', (err) => console.error(err))
this.connections.set(ip, connection)
return connection
}
Expand Down

0 comments on commit d859a5f

Please sign in to comment.