Skip to content

Commit

Permalink
Only callback after the connection is released
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondfeng committed Nov 1, 2019
1 parent a7cd085 commit e7093b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/oracle.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,11 @@ Oracle.prototype.executeSQL = function(sql, params, options, callback) {
if (err) {
self.debug(err);
}
if (self.settings.debug) {
self.debug('Connection released: ', self.pool);
}
callback(err ? err : null, data ? data : null);
});
if (self.settings.debug) {
self.debug('Connection released: ', self.pool);
}
callback(err ? err : null, data ? data : null);
}
});
});
Expand Down

0 comments on commit e7093b1

Please sign in to comment.