Do not raise window for rpc-port request 10/208410/2
authorhyunho <hhstark.kang@samsung.com>
Wed, 26 Jun 2019 04:11:24 +0000 (13:11 +0900)
committerhyunho <hhstark.kang@samsung.com>
Wed, 26 Jun 2019 04:11:24 +0000 (13:11 +0900)
Change-Id: I61163b531a1e715aa847f312df7f0d49e9bed5e3
Signed-off-by: hyunho <hhstark.kang@samsung.com>
component_based/base/application_base.cc

index 63bd6ed29232312f0213d506cfbe6967238a2665..a7a26ee2caa55d556a309652d16f0b6be8beaaa9 100644 (file)
@@ -18,6 +18,7 @@
 #include <app_control_internal.h>
 #include <app_common.h>
 #include <aul.h>
+#include <aul_rpc_port.h>
 #include <dlog.h>
 #include <Ecore_Wl2.h>
 #include <bundle_cpp.h>
@@ -95,10 +96,14 @@ void ApplicationBase::Impl::OnBaseReceive(aul_type type, bundle* b) {
   tizen_base::Bundle data(b);
   std::string comp_id = data.GetString(AUL_K_COMPONENT_ID);
   std::string inst_id = data.GetString(AUL_K_INSTANCE_ID);
+  std::string rpc_port;
   auto& mgr = internal::ComponentManager::GetInst();
   LOGD("component(%s), instance(%s)", comp_id.c_str(), inst_id.c_str());
   switch (type) {
   case AUL_START:
+    rpc_port = data.GetString(AUL_K_RPC_PORT);
+    if (rpc_port.empty())
+      mgr.Resume(inst_id);
     mgr.Resume(inst_id);
     mgr.Start(comp_id, inst_id, b);
     break;