From b4927e19949c658e569e539ffc4925f1a338d865 Mon Sep 17 00:00:00 2001 From: Louis Date: Wed, 15 Jan 2020 21:57:48 +0100 Subject: [PATCH] Fix part of protocol but still bugged --- src/clientP2P/ClientManagementUDP.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clientP2P/ClientManagementUDP.java b/src/clientP2P/ClientManagementUDP.java index 19756fb..8561a74 100644 --- a/src/clientP2P/ClientManagementUDP.java +++ b/src/clientP2P/ClientManagementUDP.java @@ -113,7 +113,7 @@ public class ClientManagementUDP implements Runnable { try { String r[] = response.split("\n"); checkProtocolID(r[0]); - return response.split(protocolID + "\nLOAD \n")[1]; + return response.split(protocolID + "\nLIST\n")[1]; } catch (java.lang.ArrayIndexOutOfBoundsException e) { throw new ProtocolError(); }