call close db on global replace
parent
37c66244df
commit
543a89ec93
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue