ora funziona

This commit is contained in:
Lorenzo Iovino 2017-07-13 15:43:42 +02:00
parent 5117b28e2c
commit e1b02284b6
4 changed files with 580 additions and 539 deletions

View file

@ -35,6 +35,8 @@ public class WaitForPlayers extends SwingWorker<Void,Void> {
while (App.clientTCP.read(buffer) != -1) {
String line = new String(buffer.array(), buffer.position(), buffer.remaining());
buffer.clear();
System.out.println("ASPETTO GAM_STARTED");
System.out.println(line);
if (line.startsWith("MESSAGE")) {
buffer.clear();