Changeset 20098


Ignore:
Timestamp:
05/07/21 20:49:26 (7 weeks ago)
Author:
tbretz
Message:
Thread can not be killed anymore - new way to stop.
File:
1 edited

Legend:

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

    r18898 r20098  
    125125    while (1)
    126126    {
     127        var endloop=false;
    127128        var event_counter = service_event.get(10000, false).counter;
    128129
    129130        var stop = function ()
    130131        {
    131             while (1)
     132            while(!endloop)
    132133            {
    133134                if (dim.state("MCP").name=="TakingData" && service_event.get(0, false).counter>event_counter)
     
    145146        var rc = takeRun("drs-gain");
    146147
    147         thread.kill();
     148        endloop=true;
    148149
    149150        if (rc)
Note: See TracChangeset for help on using the changeset viewer.