From: jprocter Date: Thu, 28 Jun 2007 14:37:02 +0000 (+0000) Subject: debugging on the haltWatch method X-Git-Tag: Release_0.2~107 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8cd6d9355345529dd6e1ccb0feefef01ec164e53;p=vamsas.git debugging on the haltWatch method git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@413 be28352e-c001-0410-b1a7-c7978e42abec --- diff --git a/src/uk/ac/vamsas/client/simpleclient/WatcherElement.java b/src/uk/ac/vamsas/client/simpleclient/WatcherElement.java index 87b50db..b3235d5 100644 --- a/src/uk/ac/vamsas/client/simpleclient/WatcherElement.java +++ b/src/uk/ac/vamsas/client/simpleclient/WatcherElement.java @@ -24,13 +24,13 @@ public abstract class WatcherElement { * before returning. If no thread is running then it returns immediately. */ public void haltWatch() { - if (log.isDebugEnabled()) - log.debug("haltWatch on "+watcher.getSubject()); // set the flag to skip this watch element. watchForChange=false; + if (log.isDebugEnabled()) + log.debug("haltWatch on "+watcher.getSubject()); endWatch(); - // watcher=null; - + if (log.isDebugEnabled()) + log.debug("haltWatch completed on "+watcher.getSubject()); } /** * called by haltWatch before @@ -54,6 +54,8 @@ public abstract class WatcherElement { * enablewatch */ protected void enableWatch() { + if (log.isDebugEnabled()) + log.debug("enableWatch on "+getSubject()); watchForChange=true; initWatch(); if (log.isDebugEnabled())