forked from osmarks/onstat
close unused DB connection
This commit is contained in:
parent
532302ae8e
commit
a0eabc3990
@ -18,6 +18,7 @@ macro includeFile(x: string): string = newStrLitNode(readFile(x.strVal))
|
||||
const css = includeFile("./src/style.css")
|
||||
let database = openDatabase("./monitoring.sqlite3")
|
||||
migrate(database)
|
||||
close(database)
|
||||
|
||||
var threadDB {.threadvar.}: Option[DbConn]
|
||||
proc getDB(): DbConn =
|
||||
|
Loading…
Reference in New Issue
Block a user