Skip to content

feature: Added gRPC close signal to Monitor call (allows graceful close of monitor) #2276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jan 2, 2024
Prev Previous commit
Next Next commit
lint: avoid redefinition of the built-in function close
  • Loading branch information
cmaglie committed Jan 2, 2024
commit 2cf3f8f7d894b0b51a25fcf2ba3e60cba6caff7b
2 changes: 1 addition & 1 deletion commands/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ func (s *ArduinoCoreServerImpl) Monitor(stream rpc.ArduinoCoreService_MonitorSer
}
}
}
if close := msg.GetClose(); close {
if closeMsg := msg.GetClose(); closeMsg {
if err := portProxy.Close(); err != nil {
logrus.WithError(err).Debug("Error closing monitor port")
}
Expand Down