/** * Method which forces retry of a command after login. * <p/> * This method assumes the single threaded nature of JavaScript execution for correctness. * * @param command * command which needs to be retried * @param deferred * callbacks for the command */ private void handleLogin(GwtCommand command, Deferred deferred) { final String oldToken = notNull(command.getUserToken()); if (!afterLoginCommands.containsKey(oldToken)) { afterLoginCommands.put(oldToken, new ArrayList<RetryCommand>()); login(oldToken); } afterLogin(command, deferred); }
afterLogin(command, deferred); return deferred;