mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-26932 (CVS connection is performed from the UI thread (hangs IDEA))
This commit is contained in:
+2
-1
@@ -244,7 +244,7 @@ public abstract class CvsCommandOperation extends CvsOperation implements IFileI
|
||||
}
|
||||
catch (AuthenticationException e) {
|
||||
if (! root.isOffline()) {
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
ApplicationManager.getApplication().executeOnPooledThread(new Runnable() {
|
||||
public void run() {
|
||||
final LoginPerformer.MyForRootProvider performer =
|
||||
new LoginPerformer.MyForRootProvider(Collections.singletonList(root), new Consumer<VcsException>() {
|
||||
@@ -257,6 +257,7 @@ public abstract class CvsCommandOperation extends CvsOperation implements IFileI
|
||||
performer.loginAll(ModalityContextImpl.NON_MODAL);
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
throw root.processException(new CommandException(e, "Authentication problem"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user