1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 15:45:25 +02:00

[209827] fix: Update DStore command implementation to enable cancelation of archive operations

This commit is contained in:
Xuan Chen 2007-12-20 05:55:06 +00:00
parent 1c1fb2d1bd
commit a7be65e084

View file

@ -296,11 +296,10 @@ public class UniversalFileSystemMiner extends Miner {
public DataElement handleCancel(DataElement subject, DataElement status) {
ICancellableHandler thread = (ICancellableHandler) _cancellableThreads
.get(subject);
System.out.println("Inside handleCancel(), and the thread is " + thread);
if (thread != null) {
if (!thread.isDone()) {
System.out.println("Inside handleCancel(), and will call thread.cancel");
thread.cancel();
}
}
@ -414,7 +413,6 @@ public class UniversalFileSystemMiner extends Miner {
_dataStore.trace(e);
}
// save find thread in hashmap for retrieval during cancel
System.out.println("put thread into the _cancellableThreads hashmap. " + thread.getClass());
_cancellableThreads.put(command, thread);
}