Changeset 17637 for trunk


Ignore:
Timestamp:
03/31/14 16:12:23 (11 years ago)
Author:
tbretz
Message:
Catch when a DRS calibration could not be restored.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/CheckUnderflow.js

    r17535 r17637  
    185185        dim.send("FAD_CONTROL/LOAD_DRS_CALIBRATION", filefmt.$(yy, mm, dd, night, nn));
    186186
    187         var now = new Date();
    188         v8.timeout(3000, function() { if (service_drs.get(0, false).counter>drs_counter) return true; });
    189 
    190         dim.log("Last DRS calibration restored ["+(new Date()-now)/1000+"s]");
     187        try
     188        {
     189            var now = new Date();
     190            v8.timeout(3000, function() { if (service_drs.get(0, false).counter>drs_counter) return true; });
     191            dim.log("Last DRS calibration restored ["+(new Date()-now)/1000+"s]");
     192        }
     193        catch (e)
     194        {
     195            console.warn("Restoring last DRS calibration failed.");
     196        }
    191197    }
    192198
Note: See TracChangeset for help on using the changeset viewer.