Simple Method Gives Me an Error
I've been writing an OSC program using the JavaOSC library and when I call the OSCPortIn.close() method I get this error:
Code:
java.net.SocketException: socket closed
at java.net.PlainDatagramSocketImpl.receive0(Native Method)
at java.net.PlainDatagramSocketImpl.receive(Unknown Source)
at java.net.DatagramSocket.receive(Unknown Source)
at com.illposed.osc.OSCPortIn.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
If I don't use the method, I can't access the port after I've ran the program once.