Changeset 12431 for trunk/FACT++


Ignore:
Timestamp:
11/06/11 19:22:19 (13 years ago)
Author:
lyard
Message:
added an extra safety check when removing services
File:
1 edited

Legend:

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

    r12419 r12431  
    494494        return;
    495495
     496    if (fServiceSubscriptions.find(server) == fServiceSubscriptions.end())
     497    {
     498      Error("Server " + server + " not found while removing service " + service);
     499      return;
     500    }
     501
    496502    if (fServiceSubscriptions[server].erase(service) != 1)
    497503    {
Note: See TracChangeset for help on using the changeset viewer.