fixed graceful shutdown

This commit is contained in:
Рябов Владислав Олегович authored and Мержанов Максим Владимирович committed 2021-02-08 12:11:41 +03:00
1 parent 2a53d5b19d
commit bbb9d200ce
2 files changed
+3 -7

No files matched your search

+2 -2
View File
@@ -53,9 +53,9 @@ func socketConfiguration(cfg interface{}) structure.SocketConfiguration {
}
}
func onShutdown(_ context.Context, _ os.Signal) {
func onShutdown(ctx context.Context, _ os.Signal) {
service.SessionManager.ShutdownSocket(ctx)
backend.StopGrpcServer()
service.SessionManager.ShutdownSocket()
closeListeners(wsLn, grpcLn)
}