Explorar el Código

fix(server): remove premature db.Close() from InitBackend()

lq hace 1 mes
padre
commit
92041873fc
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. 0 2
      server/main.go

+ 0 - 2
server/main.go

@@ -35,8 +35,6 @@ func InitBackend() {
 	initialize.DBList()
 	if global.GVA_DB != nil {
 		initialize.RegisterTables()
-		db, _ := global.GVA_DB.DB()
-		defer db.Close()
 	}
 	initialize.InitUHFDevices()
 	go core.RunWindowsServer()