diff --git a/tcp/TCPServer.java b/tcp/TCPServer.java index c7807f2c2a191979834d2e6196f22f7467833aa0..5e565ede1f704aee1d32ed2898de03a15bfaec93 100644 --- a/tcp/TCPServer.java +++ b/tcp/TCPServer.java @@ -34,7 +34,9 @@ class TCPServer { capitalizedSentence = clientSentence.toUpperCase() + '\n'; /* Invia la risposta al client */ - outToClient.writeBytes(capitalizedSentence); + outToClient.writeBytes(capitalizedSentence); + + connectionSocket.close(); } }