mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 18:52:41 +01:00
server: Close db and store more properly
This commit is contained in:
parent
90d5f7d6a2
commit
739f8d71d2
@ -250,6 +250,10 @@ func (server *Server) Shutdown() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (server *Server) Run() {
|
func (server *Server) Run() {
|
||||||
|
// defer closing db/store
|
||||||
|
defer server.db.Close()
|
||||||
|
defer server.store.Close()
|
||||||
|
|
||||||
done := false
|
done := false
|
||||||
for !done {
|
for !done {
|
||||||
select {
|
select {
|
||||||
|
Loading…
Reference in New Issue
Block a user