Skip to content
Snippets Groups Projects
Commit 99cc9ab8 authored by rojas's avatar rojas
Browse files

Merge origin/master

parents 07f0b3ca 334fc42a
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ public class UnicastUdpReceiver
DatagramPacket receivePacket = new DatagramPacket(byteArray, byteArray.length);
ByteArrayInputStream bais = new ByteArrayInputStream(byteArray);
DataInputStream dis = new DataInputStream(bais);
DataInputStream dis = new DataInputStream(bais);
boolean isEvenParity;
int packetCount = 0;
......@@ -102,7 +102,7 @@ public class UnicastUdpReceiver
finally // clean up prior to exit, don't want to leave behind zombie socket
{
if (udpSocket != null)
udpSocket.close();
udpSocket.close(); // making sure the perhaps-scarce resource is released
System.out.println(UnicastUdpReceiver.class.getName() + " complete."); // all done
}
}
......
No preview for this file type
No preview for this file type
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