Changeset 12119 for trunk/FACT++/src


Ignore:
Timestamp:
09/16/11 20:32:46 (13 years ago)
Author:
lyard
Message:
fixed bug
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/datalogger.cc

    r12118 r12119  
    805805        ("Transition to exit error states. Closes the any open file.");
    806806
    807     AddEvent(kSM_WaitingRun, "WAIT_FOR_RUN_NUMBER", kSM_NightlyOpen, kSM_Ready)
     807    AddEvent(kSM_WaitingRun, "WAIT_FOR_RUN_NUMBER", kSM_Logging, kSM_NightlyOpen, kSM_Ready)
    808808        (bind(&DataLogger::NightlyToWaitRunPlease, this))
    809809        ("Go to waiting for run number state. In this state with any received run-number a new file is opened.");
     
    22492249{
    22502250    int cState = GetCurrentState();
     2251
     2252    if (cState == kSM_Logging)
     2253        StopRunPlease();
    22512254    if (cState == kSM_Ready)
    22522255        cState = StartPlease();
Note: See TracChangeset for help on using the changeset viewer.