Change Initialize implementation Async to sync 43/79743/1 accepted/tizen/common/20160712.151641 accepted/tizen/ivi/20160713.000823 accepted/tizen/mobile/20160713.000728 accepted/tizen/tv/20160713.000733 accepted/tizen/wearable/20160713.000722 submit/tizen/20160712.134840
authorJihoon Jung <jh8801.jung@samsung.com>
Tue, 12 Jul 2016 13:40:24 +0000 (22:40 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Tue, 12 Jul 2016 13:40:24 +0000 (22:40 +0900)
Change-Id: I8e895eec774a887a5cf73d847276aa925f3f007b
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
client/SEService.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index ef378dd..95248f4
@@ -356,6 +356,16 @@ namespace smartcard_service_api
                        result = SCARD_ERROR_IPC_FAILED;
                }
 
+               if (service->handler != NULL) {
+                       service->handler(service, service->context);
+               } else if (service->listener != NULL) {
+                       if (result == SCARD_ERROR_OK) {
+                               service->listener->serviceConnected(service, service->context);
+                       } else {
+                               service->listener->errorHandler(service, result, service->context);
+                       }
+               }
+
                _END();
 
                return result;
@@ -386,7 +396,8 @@ namespace smartcard_service_api
                this->context = context;
                this->listener = listener;
 
-               return _initialize();
+               _initialize_sync();
+               return true;
        }
 
        bool SEService::initializeSync(void *context)