Skip to content
Snippets Groups Projects
Commit 12bc219d authored by brutzman's avatar brutzman
Browse files

remove hack to sleep between packets, library functionality fixed and operation is correct

parent 3c6ce3bf
No related branches found
No related tags found
No related merge requests found
......@@ -442,11 +442,6 @@ public class AllPduSender
buffer = baos.toByteArray();
packet = new DatagramPacket(buffer, buffer.length, localMulticastAddress, DEFAULT_MULTICAST_PORT);
multicastSocket.send(packet);
try {
Thread.sleep(10L); // TODO shouldn't this kind of delay timing be in a DIS sender class?
}
catch (InterruptedException ex) {
}
String currentPduTypeValuePadded = String.format("%2s", aPdu.getPduType().getValue());
String currentPduTypePadded = String.format("%-50s", aPdu.getPduType().toString()); // - indicates right padding of whitespace
System.out.print ("Sent DIS PDU " + currentPduTypeValuePadded + " " + currentPduTypePadded );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment