mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-18 14:26:56 +00:00
Add close event for mysql socket
This commit is contained in:
parent
9237fd8364
commit
9da14bc69e
@ -93,6 +93,9 @@ export default class extends Base {
|
||||
this.connection.on('error', () => {
|
||||
this.close();
|
||||
});
|
||||
this.connection.on('close', () => {
|
||||
this.close();
|
||||
});
|
||||
//PROTOCOL_CONNECTION_LOST
|
||||
this.connection.on('end', () => {
|
||||
this.connection = null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user