Changeset 14736


Ignore:
Timestamp:
12/05/12 20:00:52 (12 years ago)
Author:
tbretz
Message:
If we are a server and force-console is not given Main.h must not see a valid entry for 'console', otherwise it will wrongly try to configure the shell for console mode.
File:
1 edited

Legend:

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

    r14662 r14736  
    9494        throw runtime_error("--force-console must be used with --console/-c");
    9595
    96     if ((!conf.Has("console") || conf.Get<bool>("server")) && !conf.Get<bool>("force-console"))
     96    if (conf.Get<bool>("server") && !conf.Get<bool>("force-console"))
     97        conf.Remove("console");
     98
     99    if (!conf.Has("console"))
    97100        return RunShell<RemoteStream>(conf);
    98101
Note: See TracChangeset for help on using the changeset viewer.