script halt config, lib part commit

This commit is contained in:
Jindra Petřík
2015-11-17 17:49:06 +01:00
parent bb37910cce
commit 727371ffb5
3 changed files with 19 additions and 1 deletions

View File

@@ -81,7 +81,15 @@ public abstract class CancellableWorker<T> implements RunnableFuture<T> {
@Override
public final boolean cancel(boolean mayInterruptIfRunning) {
return future.cancel(mayInterruptIfRunning);
boolean r = future.cancel(mayInterruptIfRunning);
if (r) {
workerCancelled();
}
return r;
}
public void workerCancelled() {
}
@Override