public void UserLogin(String name, String password, ServerClientCommunicatorWithoutGUI scc) { User s = mysql.getUserObject(name, password); if (s != null) { ClientUserMap.put(scc, s); } try { Thread.sleep(4000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } UserSignal us = new UserSignal(s); scc.SendObject(us); }