Fixed Connection.Reply.

geesefs-0-30-9
Aaron Jacobs 2015-07-27 15:33:33 +10:00
parent 612735d590
commit 9b9a86cf80
1 changed files with 3 additions and 5 deletions

View File

@ -478,13 +478,11 @@ func (c *Connection) Reply(ctx context.Context, opErr error) {
} }
// Send the reply to the kernel. // Send the reply to the kernel.
err = c.writeMessage(replyMsg) replyMsg := kernelResponse(m.Header().Unique, op, opErr, c.protocol)
if err != nil { if err := c.writeMessage(replyMsg); err != nil {
err = fmt.Errorf("writeMessage: %v", err) log.Fatalf("writeMessage: %v", err)
return return
} }
return
} }
// Close the connection. Must not be called until operations that were read // Close the connection. Must not be called until operations that were read