From ddaedfcf923a977ba6546b97fb028288dcecfdd4 Mon Sep 17 00:00:00 2001 From: js Date: Tue, 3 Mar 2020 20:04:02 +0100 Subject: [PATCH] problem with threads and multiple servers --- src/clientP2P/ClientP2P.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/clientP2P/ClientP2P.java b/src/clientP2P/ClientP2P.java index 89594be..57effd2 100644 --- a/src/clientP2P/ClientP2P.java +++ b/src/clientP2P/ClientP2P.java @@ -46,6 +46,10 @@ public class ClientP2P { for (String str : c.hostList){ ClientManagementUDP cmudp = new ClientManagementUDP(c.directories.getDataHomeDirectory(), str, c.port); t = new Thread(cmudp); + /** + t.setName("client P2P-JAVA-PROJECT"); + t.start(); + */ } //ClientManagementUDP cmudp = new ClientManagementUDP(c.directories.getDataHomeDirectory(), c.host, c.port); break;