Commits

kal...@chimay.atlassian.pl  committed da4b980

PL-2534 If the configured Jira server is temporarily unavailable when starting the app, it is very slow and hangs for some minutes.

  • Participants
  • Parent commits b6bd74b

Comments (0)

Files changed (1)

File com.atlassian.connector.commons/src/main/java/com/atlassian/theplugin/commons/remoteapi/ServerData.java

     private UserCfg basicUser;
     private UserCfg proxyUser;
     private boolean useBasicUser = false;
+
+    private boolean serverResponding = false;
+
     public ServerData(Builder builder) {
         super(builder.server != null ? builder.server.getServerId().getId() : "",
                 builder.server != null ? builder.server.getUrl() : "",
         return useBasicUser;
     }
 
+    public boolean isServerResponding() {
+        return serverResponding;
+    }
+
+    public void setServerResponding(boolean serverResponding) {
+        this.serverResponding = serverResponding;
+    }
+
     @Override
     /**
      * Beware when overriding this method. It uses instanceof instead of getClass().