git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@481
be28352e-c001-0410-b1a7-
c7978e42abec
public void interruptWatching() {
if (watchThread!=null && watchThread.isAlive())
+ {
+ // TODO: find a way of interrupting watcher in a way that prevents file IO being interrupted
watchThread.interrupt();
+ }
}
/**
log.debug("Finishing WatcherThread poll loop");\r
running=false;\r
}\r
+ /* (non-Javadoc)\r
+ * @see java.lang.Thread#interrupt()\r
+ */\r
+ public void interrupt() {\r
+ // TODO: make thread gracefully interrupt watchers so that any handlers finish doing what they were doing\r
+ // super.interrupt();\r
+ }\r
+ \r
}\r