3
0
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:
Daniel Oaks 2016-09-05 22:14:20 +10:00
parent 90d5f7d6a2
commit 739f8d71d2

View File

@ -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 {