Skip to content

Commit

Permalink
fixes nanomsg#213 regression in large message handling
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Jun 12, 2016
1 parent 83e303c commit 74f8b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion message.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func NewMessage(sz int) *Message {
}
}
if m == nil {
m = messageCache[0].pool.Get().(*Message)
m = newMsg(sz)
}

m.refcnt = 1
Expand Down

0 comments on commit 74f8b05

Please sign in to comment.