Guest User

Untitled

a guest
Jul 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. log.msg("Client connected.");
  2. try {
  3. initiate();
  4. handshake();
  5. languageSelection();
  6. if(userLogin()) { // Correct password.
  7. log.debug("Menu loop starting");
  8. menuLoop();
  9. }
  10. closeConnection();
  11. log.msg("Client disconnected.");
  12. } catch (IOException e) {
  13. log.err("Connection closed prematurely.");
  14. } catch (Exception e) {
  15. if (data != null) data.send(Command.ERROR).flush();
  16. log.err("Connection closed due to error: " + e.getMessage());
  17. }
Add Comment
Please, Sign In to add comment