Skip to content

Commit

Permalink
Fixing closing connection
Browse files Browse the repository at this point in the history
  • Loading branch information
ghecquet committed Mar 22, 2019
1 parent c067786 commit 68229d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/dao/conn.go
Expand Up @@ -110,7 +110,7 @@ func closeConn(conn Conn) error {
defer lock.Unlock()

for k, c := range conns {
if c == conn {
if c.d.GetConn() == conn {
if cl, ok := conn.(closer); ok {
if err := cl.Close(); err != nil {
return err
Expand Down

0 comments on commit 68229d2

Please sign in to comment.