include(FindPkgConfig)
set(PROJECT_NAME "automotive-message-broker")
-set(PROJECT_VERSION "0.11.805")
+set(PROJECT_VERSION "0.11.806")
set(PROJECT_CODENAME "veyron")
set(PROJECT_QUALITY "alpha")
{
DebugOut()<<"unreferencing "<<n<<" from the subscription of "<<iface->objectPath()<<endl;
manager->subscribedProcesses[iface].remove(n);
+ DebugOut()<<"new ref count: "<<manager->subscribedProcesses[iface].size()<<endl;
}
}
if(manager->subscribedProcesses[iface].empty())
{
- DebugOut()<<"No more subscribers. Unregistering."<<endl;
+ DebugOut()<<"No more subscribers. Unregistering: "<<iface->objectPath()<<endl;
+ manager->subscribedProcesses.erase(iface);
iface->unregisterObject();
}
}
/// TODO: throw dbus exception
if(!reply->success)
{
- DebugOut(DebugOut::Error)<<"setProperty fail: "<<reply->error<<endl;
+ DebugOut(DebugOut::Error)<<"SetProperty fail: "<<reply->error<<endl;
}
- delete v;
+ ///TODO: we segfault here.
+ ///if(v) delete v;
delete reply;
};
void Location::parseTime(string h, string m, string s, string dd, string mm, string yy)
{
- tm t;
- t.tm_hour = boost::lexical_cast<int>(h);
- t.tm_min = boost::lexical_cast<int>(m);
- t.tm_sec = boost::lexical_cast<int>(s);
- t.tm_mday = boost::lexical_cast<int>(dd);
- t.tm_mon = boost::lexical_cast<int>(mm);
- t.tm_year = boost::lexical_cast<int>(yy) + 100;
+ try
+ {
+ tm t;
+ t.tm_hour = boost::lexical_cast<int>(h);
+ t.tm_min = boost::lexical_cast<int>(m);
+ t.tm_sec = boost::lexical_cast<int>(s);
+ t.tm_mday = boost::lexical_cast<int>(dd);
+ t.tm_mon = boost::lexical_cast<int>(mm);
+ t.tm_year = boost::lexical_cast<int>(yy) + 100;
- time_t time = mktime(&t);
+ time_t time = mktime(&t);
- BasicPropertyType<double> temp(GPSTIME,(double)time);
+ BasicPropertyType<double> temp(GPSTIME,(double)time);
- if(mGpsTime != temp)
+ if(mGpsTime != temp)
+ {
+ mGpsTime = temp;
+ routingEngine->updateProperty(&mGpsTime, mUuid);
+ }
+ }
+ catch(...)
{
- mGpsTime = temp;
- routingEngine->updateProperty(&mGpsTime, mUuid);
+ DebugOut(DebugOut::Warning)<<"Failed to parse time "<<endl;
}
}