Skip to content

Commit

Permalink
Move connection resume before destroy raw connection
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmacko47 committed Apr 27, 2021
1 parent d2a94ef commit f1a3d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dialects/mysql/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,11 @@ class Client_MySQL extends Client {
options: {},
});
} finally {
connectionToKill.resume();
await this.destroyRawConnection(conn);
if (conn.__knex__disposed) {
this.logger.warn(`Connection Error: ${conn.__knex__disposed}`);
}
connectionToKill.resume();
}
}
}
Expand Down

0 comments on commit f1a3d8a

Please sign in to comment.