Advertisement
Guest User

Untitled

a guest
Jan 16th, 2014
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. logout.addActionListener(new ActionListener() {
  2. public void actionPerformed(ActionEvent e) {
  3. destroyGame();
  4. // disconnect client on their side
  5. try {
  6. Client.socketOut.write(-1);
  7. Client.socketOut.close();
  8. Client.socketIn.close();
  9. Client.client.close();
  10. } catch (IOException e1) {
  11. // do nothing, because it won't fail
  12. }
  13. }
  14. });
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement