Browse Source

Finally box, connectionToServer

remotes/origin/server
Marc Dimmerling 11 months ago
parent
commit
e16619ebb1
  1. 9
      src/main/java/ChatClient.java

9
src/main/java/ChatClient.java

@ -61,6 +61,15 @@ public class ChatClient extends JFrame implements KeyListener {
catch (Exception e) {
JOptionPane.showMessageDialog(null, "Verbindung zum Server \"" + address + "\" fehlgeschlagen.");
}
finally {
try {
connectionToServer.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
@Override

Loading…
Cancel
Save