In my specific case i want to avoid this print because it is me that voluntatly want to close the server.
I tryed to extend the Server class as :
class HServer extends Server
{
HServer(PApplet parent, int port)
{
super(parent, port, null);
}
public void dispose()
{
thread = null;
if (clients != null)
{
disconnectAll();
clientCount = 0;
clients = null;
}
try
{
if (server != null)
{
server.close();
server = null;
}
}
catch (IOException e)
{
//e.printStackTrace();
}
}
}
like you can see im just commenting out the e.printStackTrace(); and adding the constructor because there is not implicit constructor in Server class
But this solution doesnt work because the field Server.thread is not visible.
I could replace the entire Server class but it doesnt make sense to me.
Do you have some advice ?
Thanks in advance.