Commit 786e4704 authored by Brendan Long's avatar Brendan Long

Fix a mistake checking AllJoyn status in ConfigManager::ConnectToAllJoyn()

parent 166462a9
......@@ -105,14 +105,14 @@ ConfigManager::ConnectToAllJoyn()
ajn::SessionOpts sessionOpts(ajn::SessionOpts::TRAFFIC_MESSAGES, true, ajn::SessionOpts::PROXIMITY_ANY, ajn::TRANSPORT_ANY);
st = m_busAttachment->BindSessionPort(m_sessionPort, sessionOpts, *this);
if (!st)
if (st != ER_OK)
{
DSBLOG_WARN("Failed to bind session port: %s", QCC_StatusText(st));
return st;
}
st = m_busAttachment->AdvertiseName(m_serviceName.c_str(), sessionOpts.transports);
if (!st)
if (st != ER_OK)
{
DSBLOG_WARN("Failed to advertise service name: %s", QCC_StatusText(st));
return st;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment