Merge pull request #1028 from sebastianmarkow/master

Remove unreachable error handling in AgentRPC.listen()
This commit is contained in:
Ryan Uber 2015-06-12 22:28:10 -07:00
commit 8ffa0ea8b7

View File

@ -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()