diff --git a/clients.go b/clients.go index 9e9f9f4..877bd38 100644 --- a/clients.go +++ b/clients.go @@ -598,12 +598,7 @@ func (cl *Client) WritePacket(pk packets.Packet) error { // there are more writes in the queue if cl.Net.outbuf == nil { - if l := buf.Len(); l < cl.ops.options.ClientNetWriteBufferSize { - cl.Net.outbuf = buf - return int64(l), nil - } - - return buf.WriteTo(cl.Net.Conn) + cl.Net.outbuf = new(bytes.Buffer) } n, _ = buf.WriteTo(cl.Net.outbuf) // will always be successful