From 389a50f7b2f71096a98b54366683d520ecbf8193 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 11 Apr 2008 12:28:17 +0000 Subject: [PATCH] fix JPred thread so job aborts if submission fails. --- src/jalview/ws/JPredThread.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jalview/ws/JPredThread.java b/src/jalview/ws/JPredThread.java index ba114f2..106bb53 100644 --- a/src/jalview/ws/JPredThread.java +++ b/src/jalview/ws/JPredThread.java @@ -413,6 +413,7 @@ class JPredThread job.result = (vamsas.objects.simple.Result)new JpredResult(); job.result.setInvalid(true); job.result.setStatus("Submission " + job.jobId); + throw new Exception(job.jobId); } else { @@ -428,6 +429,8 @@ class JPredThread } catch (Exception e) { + // kill the whole job. + wsInfo.setStatus(WebserviceInfo.STATE_STOPPED_SERVERERROR); if (e.getMessage().indexOf("Exception") > -1) { wsInfo.setStatus(j.jobnum, WebserviceInfo.STATE_STOPPED_SERVERERROR); -- 1.7.10.2