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