Skip to content

Commit

Permalink
Merge pull request hashicorp#1028 from sebastianmarkow/master
Browse files Browse the repository at this point in the history
Remove unreachable error handling in AgentRPC.listen()
  • Loading branch information
ryanuber committed Jun 13, 2015
2 parents cee0af8 + 6ef6e43 commit 8ffa0ea
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions command/agent/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,6 @@ func (i *AgentRPC) listen() {
}
client.dec = codec.NewDecoder(client.reader, msgpackHandle)
client.enc = codec.NewEncoder(client.writer, msgpackHandle)
if err != nil {
i.logger.Printf("[ERR] agent.rpc: Failed to create decoder: %v", err)
conn.Close()
continue
}

// Register the client
i.Lock()
Expand Down

0 comments on commit 8ffa0ea

Please sign in to comment.