Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- logout.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- destroyGame();
- // disconnect client on their side
- try {
- Client.socketOut.write(-1);
- Client.socketOut.close();
- Client.socketIn.close();
- Client.client.close();
- } catch (IOException e1) {
- // do nothing, because it won't fail
- }
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement