Author: jm
Date: 2011-12-09 11:00:03 -0800 (Fri, 09 Dec 2011)
New Revision: 27751
Modified:
core3/impl/trunk/core-task-impl/src/main/java/org/cytoscape/task/internal/proxysettings/ProxySettingsTask2.java
Log:
Fixes #442: Fixed timeout in ProxySettingsTask2 caused by code which waited for
a Task, which was never started, to finish
Modified:
core3/impl/trunk/core-task-impl/src/main/java/org/cytoscape/task/internal/proxysettings/ProxySettingsTask2.java
===================================================================
---
core3/impl/trunk/core-task-impl/src/main/java/org/cytoscape/task/internal/proxysettings/ProxySettingsTask2.java
2011-12-09 17:38:49 UTC (rev 27750)
+++
core3/impl/trunk/core-task-impl/src/main/java/org/cytoscape/task/internal/proxysettings/ProxySettingsTask2.java
2011-12-09 19:00:03 UTC (rev 27751)
@@ -52,10 +52,11 @@
storeProxySettings();
- FutureTask<Exception> executor = new FutureTask<Exception>(new
TestProxySettings(streamUtil));
+ FutureTask<Exception> task = new FutureTask<Exception>(new
TestProxySettings(streamUtil));
Exception result = null;
try {
- result = executor.get(10, TimeUnit.SECONDS);
+ new Thread(task).start();
+ result = task.get(10, TimeUnit.SECONDS);
} catch (final InterruptedException e) {
result = e;
} catch (final ExecutionException e) {
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.