Skip to content

Commit

Permalink
improve connection.close
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Oct 2, 2024
1 parent 61e838f commit 751f627
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/dbio/connection/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ func (c *Connection) URL() string {

// Close closes the connection
func (c *Connection) Close() error {
// remove from cache
connCache.Remove(c.Name)

if c.Database != nil {
return c.Database.Close()
}
Expand Down

0 comments on commit 751f627

Please sign in to comment.