We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bed06a commit 3709bf0Copy full SHA for 3709bf0
lib/dialects/mysql/connection-manager.js
@@ -168,7 +168,8 @@ class ConnectionManager extends AbstractConnectionManager {
168
}
169
170
validate(connection) {
171
- return connection && connection._fatalError === null && connection._protocolError === null && !connection._closing;
+ return connection && connection._fatalError === null && connection._protocolError === null && !connection._closing &&
172
+ !connection.stream.destroyed;
173
174
175
0 commit comments