Skip to content

Commit

Permalink
catch error in case uncaught
Browse files Browse the repository at this point in the history
  • Loading branch information
chm-diederichs committed Oct 4, 2024
1 parent 8f0b197 commit 1de6e6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/replicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -1842,7 +1842,10 @@ module.exports = class Replicator {

const blocks = new Map()
for (const b of this._blocks) {
blocks.set(b, this.core.blocks.get(reader, b.index))
const request = this.core.blocks.get(reader, b.index)
blocks.set(b, request)

request.catch(safetyCatch) // safety catch in meantime
}

reader.tryFlush()
Expand Down

0 comments on commit 1de6e6f

Please sign in to comment.