Ignore:
Timestamp:
02/19/12 10:21:43 (13 years ago)
Author:
tbretz
Message:
Do not throw an exception if a server which is requested to be removed is not in the list; datalogger should now accept this condition, too.
File:
1 edited

Legend:

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

    r12349 r12907  
    121121void DimServiceInfoList::RemoveServer(const string s)
    122122{
     123    RemoveAllServices(s);
     124
    123125    const ServiceInfoList::iterator v = fServiceInfoList.find(s);
    124126    if (v==fServiceInfoList.end())
     127        return;
     128    /*
    125129    {
    126130        stringstream err;
    127131        err << "DimServiceInfoList: Server '" << s << "' not in list as it ought to be.";
    128132        throw runtime_error(err.str());
    129     }
    130 
    131     RemoveAllServices(s);
     133    }*/
    132134
    133135    // Remove the server from the server list
Note: See TracChangeset for help on using the changeset viewer.