Skip to content

Commit

Permalink
Merge pull request #944 from danielbatica/BUG-943
Browse files Browse the repository at this point in the history
fix: deadlock on connection onError handler
  • Loading branch information
tulios authored Nov 6, 2020
2 parents 3bd245d + ebbbd1a commit a46d2a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ module.exports = class Connection {
})

this.logError(error.message, { stack: e.stack })
await this.disconnect()
this.rejectRequests(error)
await this.disconnect()

reject(error)
}
Expand Down

0 comments on commit a46d2a0

Please sign in to comment.