Skip to content

Commit

Permalink
make sure refresh doesnt crash when the program is refreshed
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Dec 1, 2023
1 parent 99beb19 commit 711d453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/peer-discovery.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ module.exports = class PeerDiscovery {
resume () {
if (!this.suspended) return
this.suspended = false
this.refresh()
this.refresh().catch(noop)
}
}

Expand Down

0 comments on commit 711d453

Please sign in to comment.