mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +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() {
|
||||
// defer closing db/store
|
||||
defer server.db.Close()
|
||||
defer server.store.Close()
|
||||
|
||||
done := false
|
||||
for !done {
|
||||
select {
|
||||
|
Loading…
Reference in New Issue
Block a user