summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--send.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/send.go b/send.go
index 731c50a..37ae738 100644
--- a/send.go
+++ b/send.go
@@ -54,7 +54,7 @@ type QueueOutboundElement struct {
func (device *Device) NewOutboundElement() *QueueOutboundElement {
return &QueueOutboundElement{
dropped: AtomicFalse,
- buffer: device.pool.messageBuffers.Get().(*[MaxMessageSize]byte),
+ buffer: device.GetMessageBuffer(),
}
}