Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
always close database after use, even if read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
texadactyl committed Jul 8, 2024
1 parent f6cc1d8 commit 9b8842e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func main() {
if glob.FlagPlot {
helpers.DBOpen(glob.DbDriver, glob.DirDatabase, glob.DbFile)
helpers.Plodder()
helpers.DBClose()
}

// Run a report?
Expand All @@ -105,6 +106,7 @@ func main() {
} else {
helpers.ReportSC(rpt)
}
helpers.DBClose()
}

}

0 comments on commit 9b8842e

Please sign in to comment.