Skip to content

Commit

Permalink
fix(connection): add stub implementation of doClose to base connect…
Browse files Browse the repository at this point in the history
…ion class

Fix #12971
  • Loading branch information
vkarpov15 committed Mar 10, 2023
1 parent d73f659 commit 203256d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,16 @@ Connection.prototype._close = function(force, destroy, callback) {
return this;
};

/**
* Abstract method that drivers must implement.
*
* @api private
*/

Connection.prototype.doClose = function() {
throw new Error('Connection#doClose unimplemented by driver');
};

/**
* Called when the connection closes
*
Expand Down

0 comments on commit 203256d

Please sign in to comment.