Skip to content

Commit

Permalink
Prevent bogus logging on multiple Driver.Close().
Browse files Browse the repository at this point in the history
  • Loading branch information
stefano-ottolenghi authored and fbiville committed Jun 13, 2023
1 parent 94db034 commit 0341d94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neo4j/driver_with_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,9 @@ func (d *driverWithContext) Close(ctx context.Context) error {
if err := d.pool.Close(ctx); err != nil {
return err
}
d.pool = nil
d.log.Infof(log.Driver, d.logId, "Closed")
}
d.pool = nil
d.log.Infof(log.Driver, d.logId, "Closed")
return nil
}

Expand Down

0 comments on commit 0341d94

Please sign in to comment.