diff --git a/platform/remote-servers/impl/src/com/intellij/remoteServer/impl/configuration/RemoteServerConfigurable.java b/platform/remote-servers/impl/src/com/intellij/remoteServer/impl/configuration/RemoteServerConfigurable.java index 1a65ddd4c06b..0f460ace3309 100644 --- a/platform/remote-servers/impl/src/com/intellij/remoteServer/impl/configuration/RemoteServerConfigurable.java +++ b/platform/remote-servers/impl/src/com/intellij/remoteServer/impl/configuration/RemoteServerConfigurable.java @@ -61,7 +61,7 @@ public class RemoteServerConfigurable extends NamedConfigurable> @Override public void actionPerformed(ActionEvent e) { try { - apply(); + myConfigurable.apply(); } catch (ConfigurationException exc) { Messages.showErrorDialog(myMainPanel, "Cannot test connection: " + exc.getMessage(), exc.getTitle()); @@ -100,7 +100,9 @@ public class RemoteServerConfigurable extends NamedConfigurable> } }); while (!indicator.isCanceled()) { - semaphore.waitFor(500); + if (semaphore.waitFor(500)) { + break; + } } Runnable showResult = showResultRef.get(); if (showResult != null) {