diff --git a/src/network/connection.js b/src/network/connection.js index eed871ef1..0e808ae5e 100644 --- a/src/network/connection.js +++ b/src/network/connection.js @@ -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) }