forked from Silverfish/proton-bridge
GODT-2108: implement C++ Focus gRPC service client in bridge-gui.
This commit is contained in:
committed by
James Houlahan
parent
24a0ed41b9
commit
204e320df4
@ -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)
|
||||
}()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user