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 {
|
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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue