summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhishek Sharma <ce.abhishek@samsung.com>2017-05-09 16:41:25 +0530
committerUze Choi <uzchoi@samsung.com>2017-05-11 01:25:30 +0000
commitb2dd89ec9f32b49d70af34c3de0242614eaffbab (patch)
treea93f749d0f0ba14bbcc0e32acc07e71ef1469351
parent19d76718ec874c4fa73b05fb9f6501032b2557f6 (diff)
downloadiotivity-b2dd89ec9f32b49d70af34c3de0242614eaffbab.tar.gz
iotivity-b2dd89ec9f32b49d70af34c3de0242614eaffbab.tar.bz2
iotivity-b2dd89ec9f32b49d70af34c3de0242614eaffbab.zip
[IOT-2161] Fix RM initialization for Android
Change-Id: I08a422c7aa76584c5373e9125502243a8652e588 Signed-off-by: Abhishek Sharma <ce.abhishek@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/19745 Reviewed-by: Uze Choi <uzchoi@samsung.com> Tested-by: Uze Choi <uzchoi@samsung.com>
-rw-r--r--resource/src/OCPlatform_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/resource/src/OCPlatform_impl.cpp b/resource/src/OCPlatform_impl.cpp
index 633d20507..b24da3513 100644
--- a/resource/src/OCPlatform_impl.cpp
+++ b/resource/src/OCPlatform_impl.cpp
@@ -229,7 +229,7 @@ namespace OC
case ModeType::Gateway:
m_server = m_WrapperInstance->CreateServerWrapper(m_csdkLock, config, &result);
m_client = m_WrapperInstance->CreateClientWrapper(m_csdkLock, config, &result);
- m_modeType = OC_CLIENT_SERVER;
+ m_modeType = config.mode == ModeType::Gateway ? OC_GATEWAY : OC_CLIENT_SERVER;
break;
}