Commit c995ce78 authored by ac_22's avatar ac_22

process.js: batchSeg complete don't add job to reseg if it was a user cancel

parent 66cfd6ba
......@@ -253,7 +253,6 @@ function addToQ(leverCommand)
if (gEditID>Number.MAX_SAFE_INTEGER)
gEditID=1;
}
getUserID(leverCommand,function(userID){
if (undefined===leverCommand.params) {
leverCommand.params={};
......@@ -343,8 +342,11 @@ function addFiletoBatchSeg(leverCommand,nSlot)
inProcessQ[nSlot].matlabPID=0; // done with the batch segment process
batchSegFile=null; // ok to start a new batch segment
// start a reseg on this file
var leverCommand={leverFile:lf,time:1,command:'resegAll',params:[1]};
addToQ(leverCommand);
// note - lf will be null if this process was just killed by the user. if so, don't try to keep going...
if (null!==lf) {
var leverCommand={leverFile:lf,time:1,command:'resegAll',params:[1]};
addToQ(leverCommand);
}
});
} // addFiletoBatchSeg
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment