GODT-2108: implement C++ Focus gRPC service client in bridge-gui.

This commit is contained in:
Xavier Michelon
2022-11-18 09:28:19 +01:00
committed by James Houlahan
parent 24a0ed41b9
commit 204e320df4
12 changed files with 1375 additions and 58 deletions

View File

@ -89,6 +89,10 @@ func (service *Service) GetRaiseCh() <-chan struct{} {
// Close closes the service.
func (service *Service) Close() {
service.server.Stop()
close(service.raiseCh)
go func() {
// we do this in a goroutine, as on Windows, the gRPC shutdown may take minutes if something tries to
// interact with it in an invalid way (e.g. HTTP GET request from a Qt QNetworkManager instance).
service.server.Stop()
close(service.raiseCh)
}()
}