From: jprocter Date: Fri, 11 Apr 2008 12:28:17 +0000 (+0000) Subject: fix JPred thread so job aborts if submission fails. X-Git-Tag: Release_2_4~117 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=389a50f7b2f71096a98b54366683d520ecbf8193;p=jalview.git fix JPred thread so job aborts if submission fails. --- 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);