call close db on global replace

This commit is contained in:
Bel LaPointe
2022-01-09 22:28:36 -05:00
parent 37c66244df
commit 543a89ec93

View File

@@ -32,6 +32,9 @@ func Refresh() error {
if err := json.Unmarshal(b, &c); err != nil {
return err
}
if live.db != nil {
live.db.Close()
}
live = c
return nil
}