call close db on global replace
This commit is contained in:
@@ -32,6 +32,9 @@ func Refresh() error {
|
|||||||
if err := json.Unmarshal(b, &c); err != nil {
|
if err := json.Unmarshal(b, &c); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if live.db != nil {
|
||||||
|
live.db.Close()
|
||||||
|
}
|
||||||
live = c
|
live = c
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user