do not throw exception on explicit isDisposed() check

This commit is contained in:
Eugene Zhuravlev
2015-01-13 16:27:41 +01:00
parent 0074de3fa9
commit f60b35dd67
@@ -834,7 +834,7 @@ public class BuildManager implements ApplicationComponent{
return projectTaskQueue.submit(new Callable<Pair<RequestFuture<PreloadedProcessMessageHandler>, OSProcessHandler>>() {
public Pair<RequestFuture<PreloadedProcessMessageHandler>, OSProcessHandler> call() throws Exception {
if (project.isDisposed()) {
throw new Exception("project " + project.getName()+ " already disposed");
return null;
}
final RequestFuture<PreloadedProcessMessageHandler> future = new RequestFuture<PreloadedProcessMessageHandler>(new PreloadedProcessMessageHandler(), UUID.randomUUID(), new CancelBuildSessionAction<PreloadedProcessMessageHandler>());
try {