diff options
| author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-02-14 21:37:04 +0100 | 
|---|---|---|
| committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-02-14 21:37:47 +0100 | 
| commit | 18ac7c4644add4db18bcb7cd7cb3560cffe846b3 (patch) | |
| tree | 4cb0d3d26d338d5b857023024c401cbfb6c5a09b /src/ParserConfigfile.cpp | |
| parent | cba2e4929392272ce09219d1a691c059a580ab41 (diff) | |
| download | dabmux-18ac7c4644add4db18bcb7cd7cb3560cffe846b3.tar.gz dabmux-18ac7c4644add4db18bcb7cd7cb3560cffe846b3.tar.bz2 dabmux-18ac7c4644add4db18bcb7cd7cb3560cffe846b3.zip  | |
restart RC if it did a fault
Diffstat (limited to 'src/ParserConfigfile.cpp')
| -rw-r--r-- | src/ParserConfigfile.cpp | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ParserConfigfile.cpp b/src/ParserConfigfile.cpp index 9f62bdd..74d9588 100644 --- a/src/ParserConfigfile.cpp +++ b/src/ParserConfigfile.cpp @@ -127,7 +127,7 @@ void parse_configfile(string configuration_file,          unsigned* FICL,          bool* factumAnalyzer,          unsigned long* limit, -        BaseRemoteController* rc, +        BaseRemoteController** rc,          int* statsServerPort          )  { @@ -174,10 +174,10 @@ void parse_configfile(string configuration_file,      int telnetport = pt_rc.get<int>("telnetport", 0);      if (telnetport != 0) { -        rc = new RemoteControllerTelnet(telnetport); +        *rc = new RemoteControllerTelnet(telnetport);      }      else { -        rc = new RemoteControllerDummy(); +        *rc = new RemoteControllerDummy();      }      /******************** READ ENSEMBLE PARAMETERS *************/ @@ -240,7 +240,7 @@ void parse_configfile(string configuration_file,          ptree pt_service = it->second;          DabService* service = new DabService(serviceuid);          ensemble->services.push_back(service); -        service->enrol_at(*rc); +        service->enrol_at(**rc);          int success = -5; @@ -312,7 +312,7 @@ void parse_configfile(string configuration_file,          try {              setup_subchannel_from_ptree(subchan, it->second, ensemble, -                    subchanuid, rc); +                    subchanuid, *rc);          }          catch (runtime_error &e) {              etiLog.log(error, @@ -380,7 +380,7 @@ void parse_configfile(string configuration_file,          DabComponent* component = new DabComponent(componentuid); -        component->enrol_at(*rc); +        component->enrol_at(**rc);          component->serviceId = service->id;          component->subchId = subchannel->id;  | 
