Closedown

This commit is contained in:
x07maop
2015-06-23 11:13:59 +02:00
parent 5f32292adb
commit 460aef65ae

View File

@@ -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){