Changeset 16387 for trunk


Ignore:
Timestamp:
05/28/13 14:07:56 (12 years ago)
Author:
tbretz
Message:
Replaced target by state; target is not needed and might even throw an exception.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/LocalControl.h

    r13897 r16387  
    120120            const Time timeout = ms<=0 ? Time(Time::none) : Time()+boost::posix_time::millisec(ms);
    121121
    122             const int target = stoi(str.substr(3));
    123             while (fStateMachine->GetCurrentState()!=target && timeout>Time() && !T::IsScriptStopped())
     122            while (fStateMachine->GetCurrentState()!=state && timeout>Time() && !T::IsScriptStopped())
    124123                usleep(1);
    125124
    126             if (fStateMachine->GetCurrentState()==target)
     125            if (fStateMachine->GetCurrentState()==state)
    127126                return true;
    128127
Note: See TracChangeset for help on using the changeset viewer.