Closedown
This commit is contained in:
@@ -85,6 +85,10 @@ public class EnergyScan extends Panel {
|
||||
getComponent().setEnabled(state == State.Ready);
|
||||
}
|
||||
|
||||
void stopScan() throws Exception{
|
||||
evalAsync("caput('START', 'STOP')");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onExecutedFile(String fileName, Object result){
|
||||
try {
|
||||
@@ -93,7 +97,7 @@ public class EnergyScan extends Panel {
|
||||
if (result instanceof Exception ){
|
||||
batchIndex=0;
|
||||
batch=null;
|
||||
evalAsync("caput('START', 'STOP')");
|
||||
stopScan();
|
||||
throw ((Exception)result);
|
||||
}
|
||||
if (batch!=null){
|
||||
|
||||
Reference in New Issue
Block a user