Changeset 16537 for trunk/FACT++/src


Ignore:
Timestamp:
06/01/13 12:03:09 (11 years ago)
Author:
tbretz
Message:
Only wait if this is a valid server, e.g. dimctrl is not.
File:
1 edited

Legend:

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

    r16483 r16537  
    3232class DimStart : public DimErrorRedirecter
    3333{
     34    const bool fIsValidServer;
     35
    3436protected:
    35     DimStart(const std::string &name, MessageImp &imp) : DimErrorRedirecter(imp)
     37    DimStart(const std::string &name, MessageImp &imp) : DimErrorRedirecter(imp), fIsValidServer(!name.empty())
    3638    {
    3739        DimClient::setNoDataCopy();
    38         if (!name.empty())
     40        if (fIsValidServer)
    3941        {
    4042            DimServer::start(name.c_str());
     
    4749    ~DimStart()
    4850    {
     51        if (!fIsValidServer)
     52            return;
     53
    4954        // Give some time for pending log messages to be
    5055        // transmitted before the network is stopped
Note: See TracChangeset for help on using the changeset viewer.