MM-28370: Fix send on closed channel (#15508)

Automatic Merge
Этот коммит содержится в:
Agniva De Sarker
2020-09-25 09:23:43 +05:30
коммит произвёл GitHub
родитель 9449d0e302
Коммит d8622d1b07
3 изменённых файлов: 80 добавлений и 9 удалений

Просмотреть файл

@@ -716,6 +716,7 @@ func (s *Server) Shutdown() error {
s.StopHTTPServer()
s.stopLocalModeServer()
// Push notification hub needs to be shutdown after HTTP server
// to prevent stray requests from generating a push notification after it's shut down.
s.StopPushNotificationsHubWorkers()
s.WaitForGoroutines()