Commit 9b9a86cf authored by Aaron Jacobs's avatar Aaron Jacobs

Fixed Connection.Reply.

parent 612735d5
......@@ -478,13 +478,11 @@ func (c *Connection) Reply(ctx context.Context, opErr error) {
}
// Send the reply to the kernel.
err = c.writeMessage(replyMsg)
if err != nil {
err = fmt.Errorf("writeMessage: %v", err)
replyMsg := kernelResponse(m.Header().Unique, op, opErr, c.protocol)
if err := c.writeMessage(replyMsg); err != nil {
log.Fatalf("writeMessage: %v", err)
return
}
return
}
// Close the connection. Must not be called until operations that were read
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment