Skip to content
Snippets Groups Projects
Commit 3e9f65df authored by Andrea Michelotti's avatar Andrea Michelotti
Browse files

create topics by default

parent 79778360
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,7 @@ void PSMServer::init(void *init_data) {
// subscribe to the queue of commands
cons->addHandler(chaos::common::message::MessagePublishSubscribeBase::ONARRIVE, boost::bind(&PSMServer::messageHandler, this, _1));
cons->addHandler(chaos::common::message::MessagePublishSubscribeBase::ONERROR, boost::bind(&PSMServer::messageError, this, _1));
cons->setOption("allow.auto.create.topics","true");
if (cons->applyConfiguration() != 0) {
throw chaos::CException(-1, "cannot initialize Publish Subscribe:" + cons->getLastError(), __PRETTY_FUNCTION__);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment