Skip to content
This repository was archived by the owner on Feb 25, 2024. It is now read-only.

Commit 7a5bfc8

Browse files
committed
Hotfixed VBAN#flush
1 parent 35b5c6f commit 7a5bfc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/de/kaleidox/vban/VBAN.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ public synchronized void flush() throws IOException {
9191
if (closed) throw new IOException("Stream is closed");
9292
if (buf.length > MAX_SIZE)
9393
throw new IOException("Byte array is too large, must be smaller than " + MAX_SIZE);
94-
socket.send(new DatagramPacket(buf, buf.length, address, port));
94+
byte[] bytes = packetFactory.create().setData(buf).getBytes();
95+
socket.send(new DatagramPacket(bytes, bytes.length, address, port));
9596
buf = new byte[0];
9697
}
9798

0 commit comments

Comments
 (0)