Skip to content

Commit

Permalink
fix(database): database.close should remove connection on close
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Dec 14, 2017
1 parent 7116c2b commit 874268a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class DatabaseManager {
connections = !Array.isArray(connections) ? [connections] : connections
_.each(connections, (name) => {
this._connectionPools[name].close()
this._connectionPools[name] = null
delete this._connectionPools[name]
})
}
}
Expand Down

0 comments on commit 874268a

Please sign in to comment.