Allow more time to establish debug connection

See: https://www.pivotaltracker.com/n/projects/1346850/stories/176156373
This commit is contained in:
Kris De Volder
2020-12-16 12:39:32 -08:00
parent c41db7c716
commit ed56abed4e
2 changed files with 5 additions and 5 deletions

View File

@@ -137,11 +137,14 @@ public class RemoteJavaLaunchUtil {
for (ILaunch l : lm.getLaunches()) {
if (conf.equals(l.getLaunchConfiguration())) {
if (!l.isTerminated()) {
return null;
return l;
}
}
};
return RetryUtil.retry(50, 500, () -> conf.launch(ILaunchManager.DEBUG_MODE, new NullProgressMonitor(), false, true));
ILaunch newLaunch = RetryUtil.retry(50, 1500, () ->
conf.launch(ILaunchManager.DEBUG_MODE, new NullProgressMonitor(), false, true)
);
return newLaunch;
}
private static ILaunchConfiguration getLaunchConfig(GenericRemoteAppElement app) {