Skip to content
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

Remove unreachable error handling in AgentRPC.listen() #1028

Merged
merged 1 commit into from
Jun 13, 2015

Conversation

sebastianmarkow
Copy link
Contributor

If there happens to be an error accepting a connection in AgentRPC.listen() it is either returning, if the agent has stopped, or its for loop is continued.

Therefor error branch in line 307 is never reached.
This seems to be the case since the initial commit of the rpc code.

@ryanuber
Copy link
Member

Thanks!

ryanuber added a commit that referenced this pull request Jun 13, 2015
Remove unreachable error handling in AgentRPC.listen()
@ryanuber ryanuber merged commit 8ffa0ea into hashicorp:master Jun 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants