remote servers: 'test connection' button fixed

This commit is contained in:
nik
2013-08-15 19:15:22 +04:00
parent df190fb918
commit 1aef8d68e3
@@ -61,7 +61,7 @@ public class RemoteServerConfigurable extends NamedConfigurable<RemoteServer<?>>
@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<RemoteServer<?>>
}
});
while (!indicator.isCanceled()) {
semaphore.waitFor(500);
if (semaphore.waitFor(500)) {
break;
}
}
Runnable showResult = showResultRef.get();
if (showResult != null) {