From 82e72e04be04736c4f970c96f8f7013743ac6e6b Mon Sep 17 00:00:00 2001 From: irengrig Date: Tue, 22 Dec 2009 02:32:03 +0300 Subject: [PATCH] IDEA-26932 (CVS connection is performed from the UI thread (hangs IDEA)) --- .../cvsSupport2/cvsoperations/common/CvsCommandOperation.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/cvsoperations/common/CvsCommandOperation.java b/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/cvsoperations/common/CvsCommandOperation.java index f19f785f6750..b2cbb8dfb7c1 100644 --- a/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/cvsoperations/common/CvsCommandOperation.java +++ b/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/cvsoperations/common/CvsCommandOperation.java @@ -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() { @@ -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")); }