app/platform: fix an issue about accessing to a closed db on shutdown (#21549)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b31e6f2149
Коммит
c6b6b3313e
@@ -706,8 +706,6 @@ func (s *Server) Shutdown() {
|
||||
s.StopPushNotificationsHubWorkers()
|
||||
s.htmlTemplateWatcher.Close()
|
||||
|
||||
s.WaitForGoroutines()
|
||||
|
||||
s.platform.StopSearchEngine()
|
||||
|
||||
s.Audit.Shutdown()
|
||||
@@ -814,11 +812,6 @@ func (s *Server) GoBuffered(f func()) {
|
||||
s.platform.GoBuffered(f)
|
||||
}
|
||||
|
||||
// WaitForGoroutines blocks until all goroutines created by App.Go exit.
|
||||
func (s *Server) WaitForGoroutines() {
|
||||
s.platform.WaitForGoroutines()
|
||||
}
|
||||
|
||||
var corsAllowedMethods = []string{
|
||||
"POST",
|
||||
"GET",
|
||||
|
||||
Ссылка в новой задаче
Block a user